/* Rappel Popup Styles */
.rappel-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.rappel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 64, 71, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rappel-content {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 487px;
    max-width: 90vw;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.rappel-close {
    position: absolute;
    top: 12px;
    right: 0px;
    background: none !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rappel-close:hover {
    background: unset !important;
}

.rappel-title {
    font-family: Roboto, sans-serif;
    font-weight: 800;
    font-size: 25px;
    line-height: 100%;
    text-align: center;
    color: #004047;
    margin: 0 0 22px 0;
    border-bottom: 1px solid #A2A2A2;
    padding-bottom: 20px;
}

.rappel-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.rappel-field {
    flex: 1;
    margin-bottom: 5px; 
}

.rappel-field label {
    display: block;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #00383E !important;
    margin-bottom: 4px;
}

.rappel-required {
    color: #004047 !important;
}

.rappel-field input,
.rappel-field select,
.rappel-field textarea {
    width: 100%;
    padding: 10px 14px; 
    border: 1px solid #00383E;
    border-radius: 8px;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 130%;
    box-sizing: border-box;
    min-height: 42px; 
}

.rappel-field input:focus,
.rappel-field select:focus,
.rappel-field textarea:focus {
    outline: none;
    border-color: #004047;
    box-shadow: 0 0 0 2px rgba(0, 64, 71, 0.2);
}

.rappel-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23004047' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    font-size: 14px;
}

.rappel-field textarea {
    resize: vertical;
    min-height: 80px;
}

.rappel-submit {
    width: 100%;
    background: #FFD700 !important;
    color: #004047 !important;
    border: none;
    padding: 14px 24px; 
    border-radius: 8px;
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 20px!important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.2s;
    height: 50px;
}

.rappel-submit:hover {
    background: #FFC107 !important;
    transform: translateY(-2px);
}

.rappel-message {
    text-align: center;
    padding: 20px;
    font-family: Roboto, sans-serif;
}

.rappel-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #004047;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rappel-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
}

.rappel-success-icon {
    color: #27ae60;
}

.rappel-error-icon {
    color: #e74c3c;
}

.rappel-error-details-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
}

.rappel-error-details-btn:hover {
    background: #c0392b;
}

.rappel-widget-wrapper {
    position: relative;
}

.rappel-widget-wrapper .field {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.rappel-widget-wrapper .field .label,
.rappel-widget-wrapper .field label {
    display: block !important;
    font-family: Roboto, sans-serif !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    line-height: 130% !important;
    color: #00383E !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.rappel-widget-wrapper .field .control {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.rappel-widget-wrapper .field input[type="text"],
.rappel-widget-wrapper .field input[type="tel"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #00383E !important;
    border-radius: 8px !important;
    font-family: Roboto, sans-serif !important;
    font-size: 16px !important;
    line-height: 130% !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
    margin: 0 !important;
    background: white !important;
    color: #333 !important;
}

.rappel-widget-wrapper .field input[type="text"]:focus,
.rappel-widget-wrapper .field input[type="tel"]:focus {
    outline: none !important;
    border-color: #004047 !important;
    box-shadow: 0 0 0 2px rgba(0, 64, 71, 0.2) !important;
}


.rappel-widget-wrapper .field .error-message,
.rappel-widget-wrapper .field .error-tab {
    color: #dc3545 !important;
    font-size: 12px !important;
    font-family: Roboto, sans-serif !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
}

.rappel-widget-wrapper .field input.mage-error {
    border-color: #dc3545 !important;
}

.rappel-widget-wrapper .field.required .label span:after,
.rappel-widget-wrapper .field.required label span:after {
    content: " *" !important;
    color: #004047 !important;
    font-weight: normal !important;
}

.rappel-widget-wrapper .fieldset,
.rappel-widget-wrapper .fieldset > .field,
.rappel-widget-wrapper .fieldset > .fields > .field {
    margin: 0 !important;
    padding: 0 !important;
}

.rappel-widget-wrapper .field.telephone {
    float: none !important;
    width: 100% !important;
}

.rappel-widget-wrapper .field.taxvat {
    float: none !important;
    width: 100% !important;
}

.rappel-widget-wrapper .col-12 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .rappel-content {
        width: 95%;
        padding: 24px;
        top: 40px;
        max-height: calc(100vh - 60px);
        max-width : unset!important;
    }
    

    .rappel-row:first-child {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    .rappel-row:first-child .rappel-field {
        flex: 1 !important;
        width: 50% !important;
    }
    

    .rappel-row:not(:first-child) {
        flex-direction: row;
        gap: 2;
    }
    
    .rappel-title {
        font-size: 22px;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .rappel-field input,
    .rappel-field select,
    .rappel-field textarea,
    .rappel-widget-wrapper .field input[type="text"],
    .rappel-widget-wrapper .field input[type="tel"] {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
    

    .rappel-row:first-child .rappel-field input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .rappel-close{
        top: 7px;
        right: 6px;
        width: 25px !important;
        height: 25px !important;
        font-size: 27px !important;
    }
}