/**
 * Stylesheet for Beauty Form & Popup Section
 * Local styles for .registration-container and .beauty-popup-overlay
 */

.registration-container,
.registration-container *,
.registration-container input,
.registration-container textarea,
.registration-container select,
.registration-container button {
    font-family: var(--font-family-base) !important;
}

/* --- 1. GIAO DIỆN MẶC ĐỊNH CHO PC --- */
.registration-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    background-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(44, 40, 36, 0.05);
    overflow: hidden;
    min-height: 550px;
}

.image-side {
    flex: 1;
    background-image: url('https://mmbeautyacademy.esightstudio.vn/wp-content/uploads/2026/07/Image-8.png');
    background-size: cover;
    background-position: center;
}

.form-side {
    flex: 1.1;
    background: linear-gradient(135deg, #ffffff 40%, #fff3e3 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.form-side h2 {
    font-size: var(--font-size-h2-s); 
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    line-height: 1.35;
    margin-bottom: 15px;
}
.form-side p {
    font-size: var(--font-size-body-m);
    color: var(--color-text-grey);
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: var(--font-weight-light);
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    color: #44403c;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* ĐỒNG BỘ NỀN XÁM CHO TẤT CẢ CÁC FIELD */
.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    background-color: #f3f4f6;
    font-size: 15px;
    color: var(--color-text-dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2378716c" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    cursor: pointer;
}

/* Focus State */
.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background-color: var(--color-primary); 
    box-shadow: 0 0 0 2px #d6d3d1; 
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a8a29e;
}

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}
.alert-success { background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.btn-wrapper {
    display: flex;
    justify-content: center; 
    margin-top: 15px;
    width: 100%;
}

.submit-btn {
    background: var(--color-accent-dark);
    color: var(--color-text-white);
    border: none;
    padding: 13px 35px;
    font-size: var(--font-size-btn-m);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: auto;
}

.submit-btn:hover { 
    background: var(--color-accent-gold); 
    color: var(--color-accent-dark);
}

.submit-btn:disabled { 
    background: #e7e5e4; 
    color: #a8a29e;
    cursor: not-allowed; 
}

/* --- 2. CẤU HÌNH POPUP (GỌN GÀNG TRÊN PC) --- */
.beauty-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto; 
    padding: 40px 15px; 
    box-sizing: border-box;
}
.beauty-popup-overlay.show-popup {
    opacity: 1; visibility: visible;
}

.beauty-popup-content {
    position: relative;
    width: 100%;
    max-width: 780px; 
    margin: auto; 
    transform: translateY(-20px);
    transition: transform 0.4s ease;
    background: var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.beauty-popup-overlay.show-popup .beauty-popup-content {
    transform: translateY(0);
}

.beauty-popup-content .registration-container {
    border-radius: 12px;
    min-height: unset; 
}
.beauty-popup-content .image-side { flex: 0.7; }
.beauty-popup-content .form-side {
    flex: 1.3;
    padding: 30px 35px; 
}
.beauty-popup-content .form-side h2 { font-size: 20px; margin-bottom: 12px; }
.beauty-popup-content .form-side p { font-size: 14px; margin-bottom: 20px; }
.beauty-popup-content .form-group { margin-bottom: 12px; }
.beauty-popup-content .form-group label { font-size: 14px; margin-bottom: 4px; }
.beauty-popup-content .form-group input, 
.beauty-popup-content .form-group textarea,
.beauty-popup-content .form-group select { padding: 10px 12px; font-size: 14px; }

.beauty-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    color: var(--color-text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    font-size: 0; 
    cursor: pointer;
    z-index: 999;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}
.beauty-popup-close::before {
    content: "\2715"; 
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
}
.beauty-popup-close:hover { background-color: #e5e5e5; color: var(--color-text-dark); }

.hide-chat-icon { display: none !important; }

/* --- 3. RESPONSIVE HOÀN CHỈNH CHO MOBILE & TABLET --- */
@media (max-width: 850px) {
    .registration-container,
    .beauty-popup-content .registration-container {
        flex-direction: column !important;
        max-width: 100% !important;
        margin: 0;
    }
    
    .image-side,
    .beauty-popup-content .image-side {
        width: 100% !important;
        height: 350px !important; 
        flex: none !important;
    }
    
    .form-side,
    .beauty-popup-content .form-side {
        width: 100% !important;
        padding: 35px 25px !important;
        box-sizing: border-box !important;
    }
    .form-side h2,
    .beauty-popup-content .form-side h2 {
        font-size: var(--font-size-h5) !important;
    }
    
    .submit-btn {
        width: auto !important;
        padding: 13px 35px !important;
    }
    
    .beauty-popup-overlay {
        padding: 15px !important;
    }
    .beauty-popup-content {
        width: 100% !important;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .beauty-popup-close {
        top: 10px;
        right: 10px;
        background-color: rgba(255, 255, 255, 0.9);
        border: none;
    }
}
