/* ========================================
   Подбор от стилиста - Кнопка и Модалка
   ======================================== */

/* Кнопка */
.amn-stylist-wrapper {
    margin-top: 10px;
    clear: both;
}

.amn-stylist-btn {
    width: 100% !important;
    padding: 18px 40px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.amn-stylist-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.amn-stylist-btn:hover::before {
    left: 100%;
}

.amn-stylist-btn:hover {
    background: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Overlay */
.amn-stylist-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.amn-stylist-overlay.amn-active {
    display: flex;
    opacity: 1;
}

/* Modal */
.amn-stylist-modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.amn-stylist-overlay.amn-active .amn-stylist-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Decorative corner accents */
.amn-stylist-modal::before,
.amn-stylist-modal::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid #b89b75;
    pointer-events: none;
    transition: all 0.4s ease;
}

.amn-stylist-modal::before {
    top: -8px;
    left: -8px;
    border-right: none;
    border-bottom: none;
}

.amn-stylist-modal::after {
    bottom: -8px;
    right: -8px;
    border-left: none;
    border-top: none;
}

.amn-stylist-overlay.amn-active .amn-stylist-modal::before,
.amn-stylist-overlay.amn-active .amn-stylist-modal::after {
    width: 80px;
    height: 80px;
}

/* Close button */
.amn-stylist-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    color: #999999;
}

.amn-stylist-close:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Content */
.amn-stylist-content {
    padding: 50px 45px 45px;
}

/* Header */
.amn-stylist-header {
    text-align: center;
    margin-bottom: 35px;
    padding-top: 15px;
}

/* Title */
.amn-stylist-title {
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
}

/* Subtitle */
.amn-stylist-subtitle {
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    letter-spacing: 0.5px;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* Divider */
.amn-stylist-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.amn-stylist-divider::before,
.amn-stylist-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0f0f0, transparent);
}

.amn-stylist-divider-diamond {
    width: 8px;
    height: 8px;
    background: #b89b75;
    transform: rotate(45deg);
}

/* Form Fields */
.amn-stylist-field {
    position: relative;
    margin-bottom: 20px;
}

.amn-stylist-field input[type="text"],
.amn-stylist-field input[type="tel"],
.amn-stylist-field input {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.amn-stylist-field input:focus {
    border-color: #b89b75;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(184, 155, 117, 0.15);
}

.amn-stylist-field input::placeholder {
    color: #999999;
    font-weight: 400;
}

/* Checkbox */
.amn-stylist-checkbox {
    margin: 10px 0 30px;
}

.amn-stylist-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 11px;
    line-height: 1.6;
    color: #999999;
}

.amn-stylist-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #000000;
}

.amn-stylist-checkbox a {
    color: #b89b75;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.amn-stylist-checkbox a:hover {
    color: #000000;
    border-bottom-color: #000000;
}

/* Submit Button */
.amn-stylist-submit {
    width: 100%;
    padding: 20px 30px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

.amn-stylist-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #b89b75 0%, #a08860 100%);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.amn-stylist-submit:hover::before {
    transform: translateX(0);
}

.amn-stylist-submit:hover {
    color: #ffffff !important;
}

.amn-stylist-submit:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.amn-stylist-submit:disabled::before {
    display: none;
}

/* Success State */
.amn-stylist-success {
    text-align: center;
    padding: 60px 45px;
}

.amn-stylist-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    font-size: 50px;
    line-height: 90px;
    color: #b89b75;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.amn-stylist-success .amn-stylist-title {
    margin-bottom: 15px;
}

.amn-stylist-success-title {
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 15px 0;
}

.amn-stylist-success-text {
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    line-height: 1.7;
    margin: 0 0 35px 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
    .amn-stylist-content {
        padding: 40px 28px 35px;
    }

    .amn-stylist-success {
        padding: 50px 28px;
    }

    .amn-stylist-title {
        font-size: 18px;
    }

    .amn-stylist-field input {
        padding: 16px 18px;
    }

    .amn-stylist-submit {
        padding: 18px 25px !important;
    }

    .amn-stylist-modal::before,
    .amn-stylist-modal::after {
        width: 40px;
        height: 40px;
    }

    .amn-stylist-overlay.amn-active .amn-stylist-modal::before,
    .amn-stylist-overlay.amn-active .amn-stylist-modal::after {
        width: 50px;
        height: 50px;
    }
}