/* ============================
   CALLBACK MODAL STYLES
   ============================ */

.callback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.callback-modal-active {
    opacity: 1;
}

.callback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.callback-content {
    position: relative;
    background: white;
    border-radius: 30px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.callback-modal-active .callback-content {
    transform: scale(1);
}

.callback-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f6f9fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #1B406B;
}

.callback-close:hover {
    background: #1B406B;
    color: white;
    transform: rotate(90deg);
}

.callback-header {
    margin-bottom: 30px;
    text-align: center;
}

.callback-title {
    font-size: 28px;
    font-weight: 700;
    color: #1B406B;
    margin-bottom: 10px;
}

.callback-subtitle {
    font-size: 16px;
    color: #76797C;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.callback-input {
    width: 100%;
    height: 56px;
    padding: 0 25px;
    border: 1.5px solid #e5e7eb;
    border-radius: 100px;
    font-size: 16px;
    font-family: 'Formular', sans-serif;
    transition: all 0.2s;
    outline: none;
    color: #1B406B;
    font-weight: 400;
}

.callback-input:focus {
    border-color: #4CA0DC;
    box-shadow: 0 0 0 3px rgba(76, 160, 220, 0.1);
}

.callback-input::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

.callback-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 18px;
}

.callback-consent {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.callback-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #76797C;
    cursor: pointer;
}

.callback-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.callback-link {
    color: #4CA0DC;
    text-decoration: underline;
}

.callback-submit-btn {
    width: 100%;
    height: 56px;
    background: #4CA0DC;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Formular', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.callback-submit-btn:hover:not(:disabled) {
    background: #3B90CD;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 160, 220, 0.3);
}

.callback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.callback-spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.callback-spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.callback-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.callback-success-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.callback-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1B406B;
    margin-bottom: 10px;
}

.callback-success-text {
    font-size: 16px;
    color: #76797C;
    margin-bottom: 30px;
}

.callback-success-btn {
    padding: 12px 40px;
    background: #4CA0DC;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Formular', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.callback-success-btn:hover {
    background: #3B90CD;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .callback-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .callback-title {
        font-size: 24px;
    }
    
    .callback-subtitle {
        font-size: 14px;
    }
    
    .callback-input {
        height: 50px;
        font-size: 14px;
    }
    
    .callback-submit-btn {
        height: 50px;
    }
}


