/* ================= MEMBERSHIP PAGE SPECIFIC STYLES - UPDATED 2025 ================= */

/* Membership Page Variables - Professional Blue Theme */
:root {
    /* Primary Colors */
    --color-primary: #0f172a;
    --color-primary-light: #1e293b;
    --color-secondary: #334155;
    --color-accent: #06b6d4;
    --color-accent-hover: #0891b2;
    --color-accent-light: #67e8f9;
    
    /* Gray Scale */
    --color-gray-100: #94a3b8;
    --color-gray-200: #64748b;
    --color-gray-300: #475569;
    --color-gray-400: #334155;
    --color-gray-500: #1e293b;
    --color-gray-700: #334155;
    --color-gray-900: #0f172a;
    
    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-white: #f8fafc;
    
    /* Border and UI Colors */
    --color-border: #334155;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Background Colors */
    --color-bg: var(--color-primary);
    --color-bg-secondary: var(--color-secondary);
    --color-bg-card: rgba(30, 41, 59, 0.5);
    --color-bg-modal: #ffffff;
    
    /* Card Colors */
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: var(--color-border);
    --card-hover-border: var(--color-accent);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Light theme overrides */
[data-theme="light"] {
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
}

/* Hero Small Variant */
.hero-small {
    padding: 6rem 0 6rem; /* Increased padding for better visual impact */
    min-height: 60vh; /* Ensure adequate height */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero background with image and overlay */
.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,41,59,0.8)), url('images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hero stats styling */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    min-width: 120px;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for hero */
@media (max-width: 768px) {
    .hero-small {
        padding: 4rem 0 4rem;
        min-height: 50vh;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Sections */
.section {
    padding: clamp(1rem, 5vw, 2rem) 0;
}

.section-alt {
    background-color: var(--color-bg);
}
.bg-Ready-to-Join{
    border-bottom: solid 1px var(--color-accent);
    
}
.ready{
    justify-content: center;
    display: flex;
    gap: 0.8rem;
}
.bg-Ready-to-Join .cta-icon{
    position: relative;
    background: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Membership Types */
.membership-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.membership-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.membership-card:hover::before {
    transform: scaleX(1);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.membership-card.featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    transform: scale(1.02);
}

.membership-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.membership-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.membership-badge.limited {
    background: var(--color-warning);
}

.membership-badge.student {
    background: var(--color-success);
}

.membership-badge.international {
    background: var(--color-info);
}

.membership-header {
    margin-bottom: 2rem;
}

.membership-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.membership-title {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.membership-price {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.period {
    color: var(--color-white);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.membership-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.membership-features li {
    font-size: 0.89rem;
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
}

.membership-features li i {
    position: relative;
    color: var(--color-white);
    font-size: 0.875rem;
    flex-shrink: 0;

}

.membership-btn {
    width: 100%;
    margin-top: 2rem;
}

.membership-note {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.benefit-icon {
    width: 5rem;
    height: 5rem;
    color: var(--color-accent);
    margin: 0 auto 0.5rem;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

.benefit-card p {
    color: var(--color-text-secondary);
}

/* Networking Features */
.networking-features {
    margin-bottom: 3rem;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.feature-demo {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.search-demo {
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.search-bar i {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin: 0 0.75rem;
    opacity: 0.8;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    color: var(--color-accent);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

/* Search Results Styling */
.search-results {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-avatar {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.result-info h4 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.board-tag {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    color: #ffc107;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.board-tag::before {
    content: '👑';
    font-size: 0.7rem;
}

.connect-btn {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    margin-left: auto;
}

.connect-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.collaboration-board h4 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.collab-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.collab-type {
    background: var(--color-primary);
    color: var(--color-accent);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.collab-title {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Criteria Grid */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Force criteria card styling with higher specificity */
.section .criteria-grid .criteria-card .criteria-icon {
    width: 3rem !important;
    height: 3rem !important;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 0.75rem !important;
    font-size: 1.25rem !important;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
    position: relative !important;
    z-index: 1 !important;
}

.section .criteria-grid .criteria-card h3 {
    color: var(--color-text-primary) !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 1 !important;
}

.criteria-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.criteria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(103, 232, 249, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.criteria-card:hover::before {
    opacity: 1;
}

.criteria-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.criteria-icon {
    width: 3rem !important;
    height: 3rem !important;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 0.75rem !important;
    font-size: 1.25rem !important;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
    position: relative !important;
    z-index: 1 !important;
}

.criteria-card h3 {
    color: var(--color-text-primary) !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 1 !important;
}

.criteria-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.student-opportunities {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.student-opportunities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
    opacity: 0.5;
}

.student-opportunities h3 {
    color: var(--color-success);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.student-opportunities p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.opportunity-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--color-success), #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.student-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.benefit-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Application Process */
.application-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-secondary);
}

/* Application Form */
.application-form-section {
    background: rgba(13, 23, 37, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
}

.application-form-section h3 {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 2rem;
}

.application-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.application-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.application-form .form-section h4 {
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.form-header p {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Position-based field layout */
.form-group.position-left {
    grid-column: 1;
}

.form-group.position-right {
    grid-column: 2;
}

.form-group.position-full {
    grid-column: 1 / -1;
    width: 100%;
}

.form-group.position-top {
    order: -1;
}

.form-group.position-middle {
    order: 0;
}

.form-group.position-bottom {
    order: 1;
}

/* Flex positioning options */
.form-group.position-flex-left {
    grid-column: 1;
    display: flex;
    justify-content: flex-start;
}

.form-group.position-flex-right {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
}

.form-group.position-flex-center {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.form-group.position-flex-start {
    align-items: flex-start;
}

.form-group.position-flex-end {
    align-items: flex-end;
}

.form-group.position-flex-center {
    align-items: center;
}

/* Special handling for full-width fields */
.form-group.position-full.position-top {
    order: -2;
}

.form-group.position-full.position-bottom {
    order: 2;
}

/* Ensure full width fields break out of grid constraints */
.form-group.position-full {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override any grid constraints for full width fields */
.form-row .form-group.position-full {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
}

/* Custom sizing support */
.form-group[style*="width"] {
    min-width: 0;
}

.form-group[style*="height"] {
    min-height: 0;
}

/* Enhanced field styling for custom dimensions */
.form-group input[style*="height"],
.form-group textarea[style*="height"],
.form-group select[style*="height"] {
    box-sizing: border-box;
}

/* Flex container for better positioning control */
.form-group.position-flex-left,
.form-group.position-flex-right,
.form-group.position-flex-center {
    flex-direction: column;
    align-items: stretch;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background-color: var(--color-secondary);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;

}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

 #motivation{
    color: var(--color-white);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group a {
    color: var(--color-accent);

}


.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Application Status */
.application-status {
    background: rgba(5, 14, 27, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.application-status h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.status-tracker {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.status-tracker input {
    flex: 1;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: var(--color-primary);
    color: var(--color-text-primary);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .membership-types {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-showcase.reverse {
        direction: ltr;
    }
    
    .criteria-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .membership-types {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .application-steps {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .status-tracker {
        flex-direction: column;
        align-items: center;
    }
    
    .status-tracker input {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .application-form-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Phone Input Group Styles */
.phone-input-group {
    display: flex;
    width: 100%;
    gap:0.3rem;
}
.phone-inpute{
    width: 100% ;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 210px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-input-wrapper:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.country-code-select {
    flex: 0 0 auto;
    min-width: 40px;
    max-width: 150px;
    padding: 1rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-right: 1px solid var(--color-border);
    z-index: 1;
}

.country-code-select:hover {
    background: rgba(255, 255, 255, 0.05);
}

.country-code-select:focus {
    outline: none;
    background: rgba(6, 182, 212, 0.1);
}

.country-code-select option {
    background: var(--color-bg);
    color: var(--color-text-primary);
    padding: 0.75rem;
    font-size: 0.875rem;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: text;
    z-index: 2;
}

.phone-number-input:focus {
    outline: none;
    background: rgba(214, 162, 83, 0.05)
}

.phone-number-input:hover {
    background: rgba(255, 255, 255, 0.02);
}

.phone-number-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
    font-weight: 400;
}

/* Responsive adjustments for phone input */
@media (max-width: 768px) {
    .phone-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .country-code-select {
        min-width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        text-align: center;
    }
    
    .phone-number-input {
        text-align: center;
    }
}

/* Light theme adjustments */
[data-theme="light"] .phone-input-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .phone-input-wrapper:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .country-code-select {
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
}

[data-theme="light"] .country-code-select:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .country-code-select:focus {
    background: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .phone-number-input {
    color: #1e293b;
}

[data-theme="light"] .phone-number-input:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .phone-number-input:focus {
    background: rgba(6, 182, 212, 0.05);
}

[data-theme="light"] .phone-number-input::placeholder {
    color: #64748b;
}

/* Application Process Section with Grid Background */
#application-process {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    overflow: hidden;
}

#application-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.15) 2px, transparent 2px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.15) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 0 0, 0 0;
    animation: gridMove 30s linear infinite;
    z-index: 1;
}

#application-process::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    z-index: 1;
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

#application-process .container {
    position: relative;
    z-index: 2;
}

#application-process .section-header {
    position: relative;
    z-index: 2;
}

#application-process .application-steps {
    position: relative;
    z-index: 2;
}

#application-process .application-form-section {
    position: relative;
    z-index: 2;
}

/* Profile Photo Upload Styles */
.profile-photo-upload {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.profile-photo-upload:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

.profile-photo-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    pointer-events: none;
}

.photo-upload-placeholder i {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.7;
}

.photo-upload-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

.photo-upload-placeholder small {
    font-size: 0.875rem;
    opacity: 0.8;
}

.photo-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-error);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-photo:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Light theme adjustments */
[data-theme="light"] .profile-photo-upload {
    background: rgba(0, 0, 0, 0.02);
    border: 2px dashed #e2e8f0;
}

[data-theme="light"] .profile-photo-upload:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-accent);
}

/* ================= DYNAMIC FORM STYLES ================= */

/* Form Field Description */
.field-description {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Radio Group Styles - Enhanced ORAIA Design */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.radio-option:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.radio-option:hover::before {
    opacity: 1;
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.radio-option input[type="radio"]:checked + label {
    color: var(--color-accent);
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--color-accent);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.radio-option:has(input[type="radio"]:checked)::before {
    opacity: 1;
}

.radio-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Checkbox Group Styles - Enhanced ORAIA Design */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.checkbox-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.checkbox-option:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.checkbox-option:hover::before {
    opacity: 1;
}

.checkbox-option input[type="checkbox"] {
    margin: 0;
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-option input[type="checkbox"]:checked + label {
    color: var(--color-accent);
    font-weight: 600;
}

.checkbox-option:has(input[type="checkbox"]:checked) {
    border-color: var(--color-accent);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.checkbox-option:has(input[type="checkbox"]:checked)::before {
    opacity: 1;
}

.checkbox-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

/* Dynamic Section Styles */
.dynamic-section {
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(6, 182, 212, 0.05);
}

.add-dynamic-item {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.add-dynamic-item:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Fallback Message Styles */
.fallback-message {
    margin: 2rem 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--color-info);
    color: var(--color-text-primary);
}

.alert i {
    font-size: 1.25rem;
}

/* Form Section Animation */
.form-section {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Actions Styling */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid rgba(6, 182, 212, 0.2);
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.05) 0%, 
        rgba(6, 182, 212, 0.02) 100%);
    border-radius: 12px 12px 0 0;
}

.form-actions .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.form-actions .btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(6, 182, 212, 0.3);
    color: var(--color-text-primary);
}

.form-actions .btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Form Toast Notification */
.form-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.95) 0%, 
        rgba(34, 197, 94, 0.9) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Real-time Update Indicator */
.form-updating {
    position: relative;
}

.form-updating::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Responsive Design for Dynamic Form */
@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .checkbox-group {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .checkbox-option {
        padding: 0.75rem;
    }
    
    .dynamic-section {
        padding: 0.75rem;
    }
    
    .add-dynamic-item {
        width: 100%;
        padding: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .form-actions .btn {
        min-width: auto;
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* ================= PHOTO CROPPING MODAL STYLES ================= */

.photo-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.photo-crop-modal-content {
    background: var(--color-bg-modal);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.photo-crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-primary);
    color: var(--color-text-primary);
    border-radius: 12px 12px 0 0;
}

.photo-crop-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.photo-crop-container {
    padding: 2rem;
}

.photo-preview-container {
    margin-bottom: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.photo-crop-controls {
    margin-bottom: 2rem;
}

.crop-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.crop-info p {
    margin: 0;
    color: var(--color-gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

.crop-range-group {
    margin-bottom: 1.5rem;
}

.crop-range-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.crop-range-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--color-gray-200);
    outline: none;
    -webkit-appearance: none;
}

.crop-range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.crop-range-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.aspect-ratio-group {
    margin-bottom: 1.5rem;
}

.aspect-ratio-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.aspect-ratio-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.aspect-ratio-group input[type="radio"] {
    display: none;
}

.aspect-ratio-group input[type="radio"] + label {
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
}

.aspect-ratio-group input[type="radio"]:checked + label {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    font-weight: 500;
}

.crop-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.crop-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.crop-button.cancel {
    background: var(--color-gray-200);
    color: var(--color-text-primary);
}

.crop-button.cancel:hover {
    background: var(--color-gray-300);
}

.crop-button.primary {
    background: var(--color-accent);
    color: white;
}

.crop-button.primary:hover {
    background: var(--color-accent-hover);
}

.crop-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design for Photo Cropping Modal */
@media (max-width: 768px) {
    .photo-crop-modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .photo-crop-header {
        padding: 1rem 1.5rem;
    }
    
    .photo-crop-container {
        padding: 1.5rem;
    }
    
    .photo-preview-container {
        min-height: 250px;
    }
    
    .aspect-ratio-options {
        gap: 0.5rem;
    }
    
    .aspect-ratio-group input[type="radio"] + label {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .crop-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .crop-button {
        width: 100%;
        justify-content: center;
    }
}

/* ================= PHOTO UPLOAD STYLES ================= */

.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.photo-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.photo-upload-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
}

.photo-preview-img {
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.photo-remove-btn {
    background: var(--color-error);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.photo-remove-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.form-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-bg-modal);
    color: var(--color-text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

.form-toast.toast-success {
    background: var(--color-success);
    color: white;
}

.form-toast.toast-error {
    background: var(--color-error);
    color: white;
}

.form-toast.toast-warning {
    background: var(--color-warning);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ================= WORD COUNT VALIDATION STYLES ================= */

/* Word Count Container */
.word-count-container {
    margin-top: 8px;
    font-size: 0.9em;
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
    clear: both;
}

.word-count-display {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-secondary, #666);
    font-weight: 500;
}

.current-words {
    font-weight: 600;
    color: var(--color-text-primary, #333);
}

.max-words {
    color: var(--color-text-secondary, #666);
}

.word-count-warning {
    color: var(--color-error, #ff6b6b);
    font-size: 0.85em;
    margin-top: 3px;
    font-weight: 500;
}

/* Input styling when word limit is exceeded */
.form-input.word-limit-exceeded,
.modern-input.word-limit-exceeded,
.modern-textarea.word-limit-exceeded,
input.word-limit-exceeded,
textarea.word-limit-exceeded {
    border-color: var(--color-error, #ff6b6b) !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
}

/* Word count display in form fields */
.form-group .word-count-container {
    margin-top: 8px;
    padding: 0 2px;
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
}

/* Responsive word count display */
@media (max-width: 768px) {
    .word-count-display {
        font-size: 0.85em;
    }

    .word-count-warning {
        font-size: 0.8em;
    }
}

/* ================= PASSWORD VALIDATION STYLES ================= */

/* Password Error Styling */
.password-error {
    border-color: var(--color-error, #ef4444) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.password-error-message {
    color: var(--color-error, #ef4444);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.password-error-message i {
    font-size: 0.75rem;
}

/* Password Match Success Styling */
.password-match {
    border-color: var(--color-success, #10b981) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.password-success-message {
    color: var(--color-success, #10b981);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.password-success-message i {
    font-size: 0.75rem;
}

/* ================= FORM VALIDATION STYLES ================= */

/* Error state for form inputs */
.form-field input.error,
.form-field textarea.error,
.form-field select.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background-color: #fef2f2 !important;
}

.form-field input.error:focus,
.form-field textarea.error:focus,
.form-field select.error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Field error message */
.field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.field-error svg {
    flex-shrink: 0;
}

/* Validation summary */
.validation-summary {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #dc2626;
    animation: slideDown 0.3s ease-out;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.validation-summary li {
    margin-bottom: 0.25rem;
}

/* Animation for validation summary */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state for form inputs */
.form-field input.success,
.form-field textarea.success,
.form-field select.success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    background-color: #f0fdf4 !important;
}

/* Focus state improvements */
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    transition: all 0.2s ease;
}