/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc; /* Light gray/white for light mode */
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}

/* Dark theme styles - UPDATED TO BLACK/DARK */
body.dark-theme {
    background-color: #000000; /* Pure black background */
    color: #f1f5f9;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff; /* White background for light mode */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(1, 160, 96, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

body.dark-theme .container {
    background-color: #0f172a; /* Dark blue/black for container */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   PAGE TITLE
   ============================================ */

.page-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    width: 100%;
}

.title-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: #01A060; /* Green color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(1, 160, 96, 0.3);
}

.page-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #01A060; /* Green color */
}

.subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

body.dark-theme .subtitle {
    color: #94a3b8;
}

/* ============================================
   OPTIONS CONTAINER
   ============================================ */

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 50px;
}

/* For mobile: Stack options vertically */
@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ============================================
   OPTION CARDS - UPDATED FOR CLICK EFFECTS
   ============================================ */

.option-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(1, 160, 96, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Top border that appears on click/hover */
.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #01A060; /* Green color */
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

body.dark-theme .option-card {
    background-color: #1e293b; /* Dark gray for cards */
    border-color: #334155;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Click effect for option cards */
.option-card:active {
    transform: scale(0.98);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(1, 160, 96, 0.15);
    border-color: #01A060; /* Green color */
}

.option-card:hover::before {
    transform: scaleX(1);
}

body.dark-theme .option-card:hover {
    box-shadow: 0 15px 30px rgba(1, 160, 96, 0.25);
    border-color: #01A060;
}

/* Option Header */
.option-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.option-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(1, 160, 96, 0.1); /* Light green background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #01A060; /* Green color */
    font-size: 24px;
    transition: all 0.3s ease;
}

.option-card:hover .option-icon {
    background-color: rgba(1, 160, 96, 0.2);
    transform: scale(1.1) rotate(10deg); /* Rotate icon on hover */
}

.option-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
}

body.dark-theme .option-header h3 {
    color: #f9fafb;
}

/* Option Description */
.option-description {
    margin-bottom: 25px;
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
    flex-grow: 1;
}

body.dark-theme .option-description {
    color: #94a3b8;
}

/* Option Features */
.option-features {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

body.dark-theme .feature {
    color: #cbd5e1;
}

.feature i {
    color: #01A060; /* Green color */
    font-size: 16px;
}

/* ============================================
   PROCEED BUTTONS
   ============================================ */

.form-actions {
    margin-top: auto;
}

.proceed-btn {
    width: 100%;
    padding: 16px 24px;
    background-color: #01A060; /* Green color */
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.proceed-btn:hover {
    background-color: #018c54; /* Darker green */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 160, 96, 0.3);
}

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

.proceed-btn i {
    transition: transform 0.3s ease;
}

.proceed-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   DIVIDER - UPDATED WITH GREEN COLOR
   ============================================ */

.divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 40px 0 50px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    padding: 0 20px;
    color: #01A060; /* Green color for "OR" */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

body.dark-theme .divider::before,
body.dark-theme .divider::after {
    background-color: #334155;
}

body.dark-theme .divider span {
    color: #01A060; /* Green color for "OR" in dark mode */
}

/* ============================================
   HELP SECTION - UPDATED WITH SEPARATE LINKS
   ============================================ */

.help-section {
    text-align: center;
    padding: 30px;
    background-color: #f8fafc; /* Light gray/white background */
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Remove the click effect from entire help section */
.help-section:active {
    transform: none;
}

.help-section:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(1, 160, 96, 0.1);
    border-color: #e2e8f0;
}

.help-section:hover::before {
    transform: scaleX(0);
}

body.dark-theme .help-section {
    background-color: #1e293b; /* Dark gray for help section */
    border-color: #334155;
}

/* Make "Need Help" title clickable */
.help-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin-bottom: 15px;
}

.help-title-link:hover .help-title {
    color: #018c54; /* Darker green on hover */
}

.help-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #01A060; /* Green color */
    transition: color 0.3s ease;
}

.help-title i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.help-title-link:hover .help-title i {
    transform: scale(1.1);
}

.help-text {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
}

body.dark-theme .help-text {
    color: #94a3b8;
}

/* Email link styles */
.help-email {
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #01A060; /* Green color */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(1, 160, 96, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.help-email:hover {
    background-color: #ffffff;
    border-color: #01A060; /* Green color */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 160, 96, 0.1);
}

body.dark-theme .help-email {
    background-color: rgba(30, 41, 59, 0.9); /* Dark gray */
    color: #01A060; /* Green color */
}

body.dark-theme .help-email:hover {
    background-color: #334155; /* Lighter dark gray */
    color: #01A060; /* Green color */
}

.help-subtext {
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
}

body.dark-theme .help-subtext {
    color: #94a3b8;
}

/* ============================================
   SETTINGS ICON (EXACT AS GIVEN - NO CHANGES)
   ============================================ */

.settings-icon {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(67, 98, 201, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.settings-icon:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(67, 98, 201, 0.1);
    border-color: #4362C9;
    box-shadow: 0 8px 25px rgba(67, 98, 201, 0.15);
}

.settings-icon svg {
    color: #4362C9;
    transition: color 0.3s ease;
}

.settings-icon:hover svg {
    color: #01A060;
}

body.dark-theme .settings-icon {
    background: rgba(0, 0, 0, 0.95); /* Pure black */
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .settings-icon:hover {
    background: rgba(1, 160, 96, 0.2); /* Green tint */
    border-color: #01A060; /* Green color */
}

/* SETTINGS DROPDOWN CSS (EXACT AS GIVEN - NO CHANGES) */
.settings-dropdown {
    position: fixed;
    top: 90px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(67, 98, 201, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.settings-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

body.dark-theme .settings-dropdown {
    background: rgba(15, 23, 42, 0.95); /* Dark blue/black */
    border-color: rgba(1, 160, 96, 0.3); /* Green color */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4362C9 0%, #01A060 40%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-theme .settings-heading {
    background: linear-gradient(135deg, #4362C9 0%, #01A060 40%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-option {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.language-option:hover {
    border-color: #4362C9;
    color: #4362C9;
    transform: translateY(-1px);
}

.language-option.active {
    background: #4362C9;
    border-color: #4362C9;
    color: #ffffff;
}

body.dark-theme .language-option {
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-theme .language-option:hover {
    border-color: #01A060; /* Green color */
    color: #01A060; /* Green color */
}

body.dark-theme .language-option.active {
    background: #01A060; /* Green color */
    border-color: #01A060; /* Green color */
    color: #ffffff;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-option {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 80px;
}

.theme-option:hover {
    border-color: #01A060;
    color: #01A060;
    transform: translateY(-1px);
}

.theme-option.active {
    background: #01A060;
    border-color: #01A060;
    color: #ffffff;
}

body.dark-theme .theme-option {
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-theme .theme-option:hover {
    border-color: #018c54; /* Darker green */
    color: #018c54; /* Darker green */
}

body.dark-theme .theme-option.active {
    background: #01A060; /* Green color */
    border-color: #01A060; /* Green color */
    color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .main-content {
        padding: 40px 30px;
    }
    
    .options-container {
        gap: 25px;
    }
    
    .option-card {
        padding: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .page-title h2 {
        font-size: 28px;
    }
    
    .title-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .options-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .option-header {
        gap: 15px;
    }
    
    .option-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .option-header h3 {
        font-size: 20px;
    }
    
    .proceed-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .help-section {
        padding: 25px 20px;
    }
    
    .help-email {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .settings-icon {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .settings-dropdown {
        top: 75px;
        right: 20px;
        padding: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 25px 15px;
    }
    
    .page-title h2 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .option-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .option-description {
        font-size: 14px;
    }
    
    .feature {
        font-size: 13px;
    }
    
    .divider {
        margin: 30px 0 40px;
    }
}