/* Th SICAP - buton + modal solicitare ofertă */

/* ---- Buton ---- */
.thsicap-button-wrap {
    margin-top: 8px;
    width: 100%;
}

.thsicap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    height: 40px;
    padding: 0 18px 0 0;
    background: #fff;
    color: #000;
    border: 2px solid #DC2A0B;
    border-radius: 5px;
    font-family: FuturaPT, Tahoma, sans-serif, Arial;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.thsicap-btn:hover,
.thsicap-btn:focus {
    background: #fdeeeb;
    box-shadow: 0 0 0 1px #DC2A0B inset;
    color: #1f2d3d;
    outline: none;
}

.thsicap-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 36px;
    flex: 0 0 33px;
    margin-right: 14px;
    border-radius: 2px 0 0 2px;
    background: #DC2A0B;
    color: #fff;
}

.thsicap-btn-text {
    flex: 1 1 auto;
}

/* ---- Modal ---- */
.thsicap-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, .55);
    padding: 20px;
    overflow-y: auto;
}

.thsicap-overlay.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.thsicap-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 40px auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    padding: 24px 24px 28px;
}

.thsicap-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #9aa3ab;
    cursor: pointer;
}

.thsicap-close:hover {
    color: #1f2d3d;
}

.thsicap-title {
    margin: 0 24px 18px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2d3d;
}

.thsicap-field {
    margin-bottom: 14px;
}

.thsicap-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #44505c;
}

.thsicap-req {
    color: #e02424;
}

.thsicap-field input,
.thsicap-field select,
.thsicap-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccd2d8;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #1f2d3d;
}

.thsicap-field input:focus,
.thsicap-field select:focus,
.thsicap-field textarea:focus {
    border-color: #DC2A0B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 42, 11, .15);
}

.thsicap-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* honeypot ascuns */
.thsicap-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.thsicap-consent {
    margin: 6px 0 16px;
    font-size: 12.5px;
    color: #55606b;
}

.thsicap-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.thsicap-consent input {
    margin-top: 2px;
}

.thsicap-feedback {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.thsicap-feedback.is-error {
    display: block;
    background: #fdecec;
    border: 1px solid #f5b5b5;
    color: #b71c1c;
}

.thsicap-feedback.is-success {
    display: block;
    background: #e8f6ec;
    border: 1px solid #9fd6b0;
    color: #1b7a36;
}

.thsicap-submit {
    width: 100%;
    padding: 12px 16px;
    background: #DC2A0B;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.thsicap-submit:hover {
    background: #b52309;
    color: #fff;
}

.thsicap-submit[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

body.thsicap-modal-open {
    overflow: hidden;
}

/* ---- Lista de configurații (produse cu combinații) ---- */
.thsicap-comb-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #ccd2d8;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fff;
}

/* selectori cu specificitate mai mare decât ".thsicap-field label" / ".thsicap-field input" */
.thsicap-comb-list label.thsicap-comb-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 5px 0;
    font-size: 13.5px;
    font-weight: 400;
    color: #1f2d3d;
    cursor: pointer;
}

.thsicap-comb-list label.thsicap-comb-item + label.thsicap-comb-item {
    border-top: 1px solid #f0f2f4;
}

.thsicap-comb-list .thsicap-comb-item input[type=checkbox] {
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    margin: 3px 0 0;
    flex: 0 0 auto;
}
