/* style.css - Updated for TVSlide Referral Landing Page */
:root {
    /* Color Scheme */
    --background-main: #F4F4F7; /* Light grey background */
    --background-card: #FFFFFF; /* White cards */
    --text-primary: #1D1D1F; /* Near black for text */
    --text-secondary: #515154; /* Dark gray for secondary text */
    --accent-red-bright: #E50914; /* Brighter, more modern red */
    --accent-red-dark: #B81D24;
    --accent-red-gradient: linear-gradient(45deg, var(--accent-red-bright), var(--accent-red-dark));
    --button-hover-brightness: 1.1;

    /* Borders & Shadows */
    --border-color-soft: #E5E5EA;
    --border-radius: 16px;
    --border-radius-small: 10px;
    --box-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.05);
    --box-shadow-interactive: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Typography & Spacing */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--background-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiated;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px 50px 15px;
}

/* Header */
.app-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 25px;
    text-align: center;
    border-bottom: 1px solid var(--border-color-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--text-primary);
}

.app-header .tv-red {
    color: var(--accent-red-bright);
}

/* Main Content Area */
.app-main-content {
    padding-top: 30px;
}

.card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid var(--border-color-soft);
    box-shadow: var(--box-shadow-soft);
    transition: transform var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-interactive);
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

/* Referral Hero Section */
.referral-hero {
    text-align: center;
    padding: 60px 20px;
    background: #03c75b;
    border-radius: var(--border-radius);
    color: #FFF;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-interactive);
}

.hero-title {
    font-size: 2.8em;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2em;
    font-weight: 400;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.hero-cta {
    font-size: 1.2em !important;
    padding: 15px 30px !important;
}

/* Referral Info Section */
.referral-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-icon {
    font-size: 2.5em;
    color: var(--accent-red-bright);
    margin-bottom: 15px;
    height: 50px;
    width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FEE;
    border-radius: 50%;
}

.info-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.info-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin: 0;
}

/* How It Works Section */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red-gradient);
    color: #FFF;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}


/* Signup Form Styles */
.form-content {
    padding: 40px;
}

.form-content h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-family);
    font-weight: 500;
    line-height: 1.5;
    color: #495057;
    background-color: #F4F4F7;
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    box-sizing: border-box;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--accent-red-bright);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(229, 9, 20, 0.2);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-danger {
    color: #000000;
    background: white;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius-small);
    display: none; /* Hidden by default */
}

/* --- Currency Select CSS --- */
.custom-select-wrapper {
    position: relative;
    display: block;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    cursor: pointer;
}

.custom-select-trigger {
    background-color: #F4F4F7;
    border-radius: var(--border-radius-small);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-top: 0;
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
    overflow: hidden;
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--box-shadow-soft);
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 10px 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.custom-option img {
    margin-right: 10px;
    width: 16px;
    height: 12px;
}

.custom-option.selected, .custom-option:hover {
    background-color: #f3f3f3;
}

/* Footer & CTA */
.footer, .cta-container {
    text-align: center;
    margin: 0;
    padding: 20px;
    color: var(--text-secondary);
    font-size: .9em;
}

.cta-container a, .footer a {
    color: var(--accent-red-bright);
    font-weight: 500;
    text-decoration: none;
}
.cta-container a:hover, .footer a:hover {
    text-decoration: underline;
}

/* Spinner */
.spinner {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-red-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .card {
        padding: 20px;
    }
    .form-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .app-header h1 {
        font-size: 2em;
    }
    .hero-title {
        font-size: 1.8em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.6em;
    }
}

button.btn.btn-danger.btn-lg {
    background: red;
    color: white;
}
