/* 
 * Premium CSS Style sheet in 'Noon' Design Code (Vertical Layout - Final Compact)
 * Project: Katya Migel Funnel Landing Pages
 */

:root {
    --bg-dark: #050508;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: #8a8993;
    
    /* Gold & Amber Palette */
    --gold-primary: #e2a857;
    --gold-hover: #f0be75;
    --gold-dark: #b87e35;
    --gold-glow: rgba(226, 168, 87, 0.15);
    --gold-gradient: linear-gradient(135deg, #f0be75 0%, #e2a857 50%, #b87e35 100%);
    --gold-gradient-hover: linear-gradient(135deg, #f5cd93 0%, #ebd08d 50%, #cf9346 100%);
    --card-glow: radial-gradient(circle at 50% 0%, rgba(226, 168, 87, 0.08) 0%, transparent 70%);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Glowing Spheres (Noon Style) */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 168, 87, 0.12) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.bg-glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(226, 168, 87, 0.06) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
}

/* Container */
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Main Screen */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0 48px 0;
    width: 100%;
}

/* Vertical Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 28px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: var(--card-glow);
    pointer-events: none;
    z-index: -1;
}

/* Cover Image (Scale naturally, no stretching, no cropping) */
.cover-wrapper {
    position: relative;
    width: calc(100% + 56px);
    margin-top: -28px;
    margin-left: -28px;
    margin-right: -28px;
    border-top-left-radius: 27px;
    border-top-right-radius: 27px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

.cover-img {
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: contain;
    display: block;
}

.cover-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Centered CTA Text Block */
.cta-text-block {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
    line-height: 1.45;
}

.cta-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Form */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input,
.phone-input-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

/* Inputs have regular padding now (no emojis on the right) */
.input-wrapper input {
    padding-right: 16px;
}

.input-wrapper input:focus,
.phone-input-container input:focus {
    border-color: rgba(226, 168, 87, 0.35);
    box-shadow: 0 0 12px rgba(226, 168, 87, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.01);
    background: rgba(255, 255, 255, 0.04);
}

/* Phone input with custom country selector */
.phone-input-container {
    display: flex;
    position: relative;
    width: 100%;
}

.country-selector {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.selected-country:hover {
    background: rgba(255, 255, 255, 0.04);
}

.selected-country .flag {
    font-size: 14px;
}

.selected-country .code {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
}

.phone-input-container input {
    padding-left: 92px;
}

/* Country dropdown list with Search */
.country-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    width: 280px;
    background: #0f0f16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
    max-height: 250px;
    z-index: 999;
}

.country-dropdown.open {
    display: flex;
}

/* Search bar inside dropdown */
.dropdown-search-wrapper {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0b0b10;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dropdown-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-white);
    font-size: 12px;
    outline: none;
}

.dropdown-search:focus {
    border-color: rgba(226, 168, 87, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.country-list {
    overflow-y: auto;
    flex: 1;
    max-height: 200px;
}

/* Custom scrollbar for list */
.country-list::-webkit-scrollbar {
    width: 5px;
}
.country-list::-webkit-scrollbar-track {
    background: transparent;
}
.country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.country-option:hover {
    background: rgba(226, 168, 87, 0.08);
    color: var(--text-white);
}

.country-option .flag {
    font-size: 14px;
}

.country-option .country-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-option .country-code {
    font-weight: 600;
    color: var(--gold-primary);
}

/* Button & Loader */
.submit-btn {
    width: 100%;
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #1e1305;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(226, 168, 87, 0.15);
    margin-top: 4px;
}

.submit-btn:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 12px 25px rgba(226, 168, 87, 0.25),
                0 0 10px rgba(226, 168, 87, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(30, 19, 5, 0.2);
    border-top: 2.5px solid #1e1305;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Sending State */
.submit-btn.sending {
    pointer-events: none;
}

.submit-btn.sending .btn-text {
    opacity: 0;
}

.submit-btn.sending .btn-loader {
    opacity: 1;
}

/* Error Messages */
.error-msg {
    font-size: 10px;
    color: #ef4444;
    display: none;
    margin-top: 1px;
}

.input-group.invalid input {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.05);
}

.input-group.invalid .error-msg {
    display: block;
}

/* Privacy Footer */
.form-footer {
    margin-top: 18px;
    text-align: center;
}

.privacy-text {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

.privacy-text a {
    color: var(--gold-primary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-text a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .glass-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .glass-card::before {
        border-radius: 20px;
    }
    
    .cover-wrapper {
        width: calc(100% + 40px);
        margin-top: -20px;
        margin-left: -20px;
        margin-right: -20px;
        border-top-left-radius: 19px;
        border-top-right-radius: 19px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .cover-img {
        max-height: 200px;
    }
    
    .cta-text-block {
        margin-top: 16px;
        margin-bottom: 16px;
        padding: 0;
    }
    
    .cta-title {
        font-size: 13.5px;
        margin-bottom: 6px;
    }
    
    .cta-desc {
        font-size: 12px;
    }
}
