/**
 * Callback Modal Styles
 */

/* Modal Overlay */
.callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

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

/* Modal Content */
.callback-modal__content {
    position: relative;
    background: #FFFFFF;
    border-radius: 25px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.callback-modal.active .callback-modal__content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.callback-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #F5F5F5;
    border-radius: 50%;
    font-size: 24px;
    color: #354334;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.callback-modal__close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

/* Header */
.callback-modal__header {
    text-align: center;
    margin-bottom: 30px;
}

.callback-modal__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #80C242;
    box-shadow: 0 4px 15px rgba(128, 194, 66, 0.3);
}

.callback-modal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.callback-modal__header h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #000000;
    margin: 0 0 10px;
}

.callback-modal__header p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #8396AB;
    margin: 0;
}

/* Form */
.callback-modal__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.callback-modal__form input {
    width: 100%;
    height: 55px;
    padding: 0 20px;
    border: 2px solid #E1E1E1;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000000;
    background: #FFFFFF;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.callback-modal__form input:focus {
    outline: none;
    border-color: #80C242;
    box-shadow: 0 0 0 3px rgba(128, 194, 66, 0.2);
}

.callback-modal__form input::placeholder {
    color: #8396AB;
}

.callback-modal__form button[type="submit"] {
    width: 100%;
    height: 55px;
    background: #C04E29;
    border: none;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 5px;
}

.callback-modal__form button[type="submit"]:hover {
    background: #A03E1F;
    transform: translateY(-2px);
}

.callback-modal__form button[type="submit"]:active {
    transform: translateY(0);
}

/* Loading State */
.callback-modal__form button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
}

.callback-modal__form button[type="submit"].loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.callback-modal__success {
    text-align: center;
    padding: 20px 0;
}

.callback-modal__success-icon {
    width: 70px;
    height: 70px;
    background: #80C242;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.callback-modal__success-icon svg {
    width: 35px;
    height: 35px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.callback-modal__success h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000000;
    margin: 0 0 10px;
}

.callback-modal__success p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #8396AB;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .callback-modal__content {
        padding: 30px 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }

    .callback-modal__header h3 {
        font-size: 24px;
    }

    .callback-modal__photo {
        width: 70px;
        height: 70px;
    }

    .callback-modal__form input,
    .callback-modal__form button[type="submit"] {
        height: 50px;
        font-size: 16px;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}
