/* ProHair Premium Payment Modal Styles - Responsive Version */
:root {
    --ph-gold: #e4c15a;
    --ph-blue: #0b1162;
    --ph-blue-light: #131a8c;
    --ph-text: #1a1a1a;
    --ph-bg: #f8faff;
}

#ai-payment-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 17, 98, 0.4);
    backdrop-filter: blur(12px);
    z-index: 999999;
    align-items: center; justify-content: center;
    font-family: 'Inter', Arial, sans-serif !important;
    padding: 20px;
}

.ai-modal-content {
    background: #ffffff;
    padding: 0;
    border-radius: 32px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: ai-premium-slide 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes ai-premium-slide {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-modal-header {
    background: var(--ph-blue);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.ai-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--ph-gold);
    border-radius: 2px 2px 0 0;
}

.ai-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.ai-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.ai-form-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex-grow: 1;
}

.ai-form-body::-webkit-scrollbar { width: 5px; }
.ai-form-body::-webkit-scrollbar-thumb { background: #e0e6ed; border-radius: 10px; }

/* Price Display Block */
.ai-price-display {
    background: #f8faff;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#ai-display-usd {
    font-size: 32px;
    font-weight: 900;
    color: var(--ph-blue);
    line-height: 1.2;
}

#ai-display-uzs {
    font-size: 16px;
    font-weight: 700;
    color: var(--ph-gold);
    margin-top: 5px;
    background: rgba(228, 193, 90, 0.1);
    padding: 4px 15px;
    border-radius: 12px;
    display: inline-block;
}

.ai-form-group { margin-bottom: 20px; }

.ai-form-group label { 
    display: block; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px; 
    color: #888; 
}

.ai-form-group input, .ai-form-group select { 
    width: 100%; 
    padding: 14px 18px; 
    border: 2px solid #f1f3f6; 
    border-radius: 16px; 
    background: #f1f3f6; 
    font-size: 15px; 
    font-weight: 500;
    color: var(--ph-text);
    box-sizing: border-box; 
    transition: all 0.3s;
}

.ai-form-group input:focus, .ai-form-group select:focus {
    background: #fff;
    border-color: var(--ph-gold);
    outline: none;
}

.ai-submit-btn {
    width: 100%; 
    padding: 20px;
    border: none; 
    border-radius: 20px;
    background: linear-gradient(135deg, #e4c15a 0%, #c5a045 100%);
    color: #0b1162; 
    font-size: 17px; 
    font-weight: 800;
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(228, 193, 90, 0.4);
    transition: 0.3s;
    margin-top: 10px;
}

.ai-submit-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 35px -5px rgba(228, 193, 90, 0.5); }

/* Success Step */
.ai-success-icon {
    width: 80px; height: 80px; 
    color: var(--ph-gold);
    margin: 0 auto 25px auto;
}

.ai-success-icon svg {
    animation: ai-spin 4s linear infinite;
}

@keyframes ai-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* RESPONSIVE TWEAKS */
@media (max-width: 600px) {
    .ai-modal-content {
        border-radius: 24px;
        max-height: 95vh;
    }
    .ai-form-body {
        padding: 20px 25px;
    }
    #ai-display-usd { font-size: 26px; }
}
