@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - PREMIUM LIGHT MODE */
    --color-bg-deep: #f8fafc; /* Clean off-white background */
    --color-bg-slate: #f1f5f9; /* Soft light slate grey */
    --color-bg-card: rgba(255, 255, 255, 0.85); /* Frosted White Glass */
    --color-bg-input: rgba(255, 255, 255, 0.95); /* Bright clean input back */
    
    --color-primary: #047857; /* Emerald Green */
    --color-primary-rgb: 4, 120, 87;
    --color-primary-glow: rgba(4, 120, 87, 0.12);
    --color-primary-dark: #064e3b;
    --color-primary-light: #10b981;
    
    --color-accent: #d97706; /* Antique Gold */
    --color-accent-rgb: 217, 119, 6;
    --color-accent-glow: rgba(217, 119, 6, 0.12);
    --color-accent-light: #fbbf24;
    
    --color-text-primary: #0f172a; /* Deep Slate (Very high contrast) */
    --color-text-secondary: #475569; /* Slate 600 */
    --color-text-muted: #64748b; /* Slate 500 */
    
    --border-glass: rgba(4, 120, 87, 0.18); /* Soft emerald green border */
    --border-glass-focus: rgba(4, 120, 87, 0.6);
    
    /* Layout Variables */
    --font-primary: 'Outfit', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Soft Elegant Light Shadows */
    --shadow-premium: 0 15px 40px rgba(15, 23, 42, 0.06), 0 5px 15px rgba(0, 0, 0, 0.02);
    --shadow-emerald: 0 8px 25px rgba(4, 120, 87, 0.12);
    --shadow-gold: 0 8px 25px rgba(217, 119, 6, 0.12);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-deep);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(4, 120, 87, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0%, #f8fafc 100%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px; /* Smoother premium rounded edges */
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    gap: 10px;
    white-space: nowrap; /* Prevent button text wrapping */
    user-select: none;
}

.btn:active {
    transform: scale(0.96) translateY(0) !important;
    transition: transform 0.05s ease !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: var(--shadow-emerald);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(4, 120, 87, 0.25);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(4, 120, 87, 0.08);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-accent), #b45309);
    color: white;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.22);
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
}

/* Header & Navigation */
header {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85); /* Frosted Light Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.72rem;
    color: var(--color-primary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Hero Section */
.hero {
    padding: 70px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.3rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--color-text-primary);
}

.hero-content h2 span.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-dark) 30%, var(--color-primary) 70%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p.subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 32px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(4, 120, 87, 0.06);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.hero-badge-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.hero-badge-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Glass Card */
.glass-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 1; /* Establish low stacking context so modal dialogs like cropper always sit on top */
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.glass-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
}

.glass-card-title i {
    color: var(--color-accent);
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item-icon {
    width: 28px;
    height: 28px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item-text h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-text-primary);
}

.feature-item-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Info Sections */
.info-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--border-glass);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.info-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08);
}

.info-card-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.info-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Form Styling - apply.php */
.form-header {
    text-align: center;
    padding: 60px 0 30px 0;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.form-header p {
    color: var(--color-text-secondary);
}

.form-container {
    max-width: 850px;
    margin: 0 auto 100px auto;
}

/* Progress Tracker */
.progress-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.progress-bar-line {
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #cbd5e1; /* slate 300 line */
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 25px;
    left: 40px;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.progress-step.active .step-number {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-light);
    color: white;
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.progress-step.completed .step-number {
    background: var(--color-accent);
    border-color: var(--color-accent-light);
    color: white;
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.step-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.progress-step.active .step-label {
    color: var(--color-primary);
}

.progress-step.completed .step-label {
    color: var(--color-accent);
}

/* Form Steps Layout */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-full-width {
    grid-column: span 2;
}

/* Input Fields Styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.form-label span.required {
    color: #ef4444;
    margin-left: 4px;
}

.input-control {
    width: 100%;
    background-color: var(--color-bg-input);
    border: 1px solid #cbd5e1; /* slate 300 clean border */
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.input-control::placeholder {
    color: #94a3b8;
}

.input-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
    background-color: #ffffff;
}

/* Custom Dropdown styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-bg-input);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.custom-select-trigger:focus,
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
    background-color: #ffffff;
}

.custom-select-trigger i {
    color: var(--color-accent);
    transition: transform 0.3s ease;
    font-size: 0.95rem;
}

.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

/* Custom Options Overlay Modal */
.custom-options-container {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff; /* Crisp white dropdown menu */
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    overflow-y: auto;
    max-height: 240px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s;
}

.custom-select-wrapper.open .custom-options-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 18px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(4, 120, 87, 0.08);
    color: var(--color-primary-dark);
    padding-left: 24px;
}

.custom-option.selected {
    background: linear-gradient(90deg, rgba(4, 120, 87, 0.08), transparent);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-primary);
}

.custom-option.disabled-opt {
    color: #94a3b8;
    pointer-events: none;
    background: #f8fafc;
    font-style: italic;
}

/* Mirror validation error style onto custom trigger */
.custom-select-trigger.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Specific styling for validation errors */
.input-control.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.error-message {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Textarea height */
textarea.input-control {
    resize: vertical;
    min-height: 100px;
}

/* Radio Group Grid */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-input);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-sm);
    padding: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    gap: 10px;
}

.radio-option input[type="radio"]:checked + .radio-tile {
    background: rgba(4, 120, 87, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

.radio-option:hover .radio-tile {
    border-color: var(--color-accent);
}

/* Conditional Field Display */
.conditional-field {
    display: none;
    animation: slideDown 0.3s ease forwards;
}

.conditional-field.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drag and Drop File Upload */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--color-accent);
    background: rgba(217, 119, 6, 0.04);
}

.upload-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.upload-dropzone:hover .upload-icon {
    transform: translateY(-5px);
    color: var(--color-accent);
}

.upload-text {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.file-input {
    display: none;
}

.file-preview {
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    width: 100%;
    max-width: 400px;
    justify-content: space-between;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-info i {
    color: var(--color-accent);
}

.file-remove-btn {
    cursor: pointer;
    color: #ef4444;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    background: none;
    border: none;
    outline: none;
}

.file-remove-btn:hover {
    transform: scale(1.1);
}

/* Image Cropper Component Style */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.photo-preview-box {
    width: 150px;
    height: 180px;
    border: 2px solid #cbd5e1;
    border-radius: var(--border-radius-md);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 10px;
}

.photo-preview-placeholder i {
    font-size: 2.2rem;
    color: var(--color-accent);
}

.photo-preview-placeholder p {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal for Image Cropping */
.photo-cropper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Higher z-index to stay above form glassmorphism container and header */
    display: none;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0); /* Force 3D hardware acceleration to solve stacking context issues on mobile Safari */
    -webkit-transform: translate3d(0, 0, 0);
}

.cropper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Darker overlay for better contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99998;
}

.cropper-content {
    position: relative;
    width: 90%;
    max-width: 550px;
    background: #ffffff !important; /* Force completely opaque white card */
    border: 1px solid var(--border-glass-focus);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Stronger shadow for premium contrast */
    overflow: hidden;
    z-index: 99999;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cropper-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cropper-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.cropper-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    background: none;
    border: none;
    outline: none;
}

.cropper-close:hover {
    color: #ef4444;
}

.cropper-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cropper-wrapper {
    width: 100%;
    max-height: 350px;
    height: 350px;
    background: #000;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.cropper-wrapper img {
    max-width: 100%;
    display: block;
}

.cropper-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
}

.cropper-control-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--color-text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cropper-control-btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-light);
    color: white;
}

.cropper-footer {
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

/* Navigation Buttons at the end of each Step */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    gap: 16px;
}

/* Footer Section - Grounded dark forest contrast footer */
footer {
    background: #080f0d;
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact p i {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 2.8rem;
    }
    .hero-content p.subtitle {
        margin: 0 auto 36px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-full-width {
        grid-column: span 1;
    }
    .progress-step {
        position: static; /* Let absolute child align with wrapper parent */
    }
    .progress-bar-wrapper {
        padding: 0;
        margin-bottom: 55px; /* Space for absolute active label */
    }
    /* Hide all labels on mobile by default to prevent overlapping */
    .progress-step .step-label {
        display: none;
    }
    /* Show and center ONLY the active step's label on mobile */
    .progress-step.active .step-label {
        display: block;
        position: absolute;
        bottom: -25px; /* Aligned relative to progress-bar-wrapper bottom */
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--color-primary);
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .progress-bar-line, .progress-bar-fill {
        top: 20px;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .step-navigation {
        margin-top: 30px;
        padding-top: 20px;
        gap: 12px;
    }
}

/* Extra Mobile optimizations for Logo, Header, Nav Buttons, Hero actions, Badges, and Glass Cards */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    header {
        padding: 12px 0;
    }
    .logo {
        gap: 8px;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .logo-text h1 {
        font-size: 1.1rem;
    }
    .logo-text p {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }
    header .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        border-radius: 8px;
        gap: 6px;
    }
    .nav-btn-text {
        display: none; /* Hide 'Home' text on mobile */
    }
    .nav-home-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-bottom: 36px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-badges {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .hero-badge {
        width: 100%;
    }
    .glass-card {
        padding: 24px 16px;
    }
    .step-navigation {
        display: flex;
        flex-direction: row; /* Force side-by-side equal sizing */
        gap: 12px;
        width: 100%;
    }
    .step-navigation .btn {
        flex: 1; /* Stretch buttons to equal weight */
        padding: 12px 8px; /* Compact padding for small screens */
        font-size: 0.9rem;
        justify-content: center;
        border-radius: 8px;
    }
}

/* ====================================================
   SUCCESS CHECKMARK ANIMATION (success.php)
   ==================================================== */
.success-animation {
    display: inline-block;
}

.success-checkmark-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(4, 120, 87, 0.06);
    border: 3px solid var(--color-primary);
    position: relative;
    display: inline-block;
    margin: 0 auto;
    animation: checkCircle 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-checkmark-stem, .success-checkmark-kick {
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.success-checkmark-stem {
    width: 4px;
    height: 34px;
    left: 48px;
    top: 20px;
    transform: rotate(45deg);
    transform-origin: bottom left;
    animation: checkStem 0.25s 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.success-checkmark-kick {
    width: 18px;
    height: 4px;
    left: 31px;
    top: 48px;
    transform: rotate(45deg);
    transform-origin: bottom left;
    animation: checkKick 0.2s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes checkCircle {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkStem {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 34px;
        opacity: 1;
    }
}

@keyframes checkKick {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 18px;
        opacity: 1;
    }
}

/* ====================================================
   STATUS TRACKING TIMELINE RESPONSIVENESS (track.php)
   ==================================================== */
@media (max-width: 600px) {
    .status-timeline-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 35px !important;
        padding-left: 20px !important;
        margin-top: 20px !important;
    }
    .timeline-bg-line {
        left: 28px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 4px !important;
        height: auto !important;
    }
    .timeline-fill-line {
        left: 28px !important;
        top: 0 !important;
        width: 4px !important;
        height: 0% !important;
    }
    /* Set dynamic fill heights on mobile vertical timeline */
    .status-timeline-container:has(.timeline-fill-line[style*="width: 50%"]) .timeline-fill-line {
        height: 50% !important;
    }
    .status-timeline-container:has(.timeline-fill-line[style*="width: 100%"]) .timeline-fill-line {
        height: 100% !important;
    }
    .timeline-step {
        flex-direction: row !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        text-align: left !important;
    }
    .timeline-icon-box {
        flex-shrink: 0 !important;
    }
    .timeline-step strong {
        margin-top: 0 !important;
        font-size: 0.85rem !important;
    }
    .timeline-step span {
        margin-top: 0 !important;
        margin-left: auto;
        font-size: 0.72rem !important;
    }
}

