:root {
    /* USA Navy Blue Focused Colors */
    --primary-color: #1E3A8A;        /* Navy Blue */
    --primary-dark: #1E40AF;         /* Darker Navy */
    --secondary-color: #2563EB;      /* Lighter Navy Blue */
    --secondary-dark: #1D4ED8;       /* Darker version */
    --accent-color: #DC2626;         /* Red (minimal use) */
    --success-color: #059669;        /* Green */
    --warning-color: #D97706;        /* Amber */
    --error-color: #DC2626;          /* Red for errors */
    
    /* Navy-focused Grays */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;
    --black: #000000;

    /* Theme Variables */
    --bg-color: var(--white);
    --bg-secondary: #F8FAFC;
    --text-color: var(--gray-900);
    --text-muted: var(--gray-600);
    --border-color: var(--gray-200);
    --shadow-color: rgba(30, 58, 138, 0.1);
    --shadow-hover: rgba(30, 58, 138, 0.15);
    --progress-bar-bg: rgba(226, 232, 240, .3); /*  gray-200 based */

    /* Mobile-specific spacing variables */
    --mobile-container-padding: 0.5rem;
    --mobile-form-padding: 0.25rem 0;
    --mobile-input-padding: 0.15rem 0.75rem;
    --mobile-button-max-width: 200px;
    --mobile-gap-small: 0.25rem;
    --mobile-gap-medium: 0.5rem;
    --mobile-progress-height: 10px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --text-color: var(--gray-100);
    --text-muted: var(--gray-300);
    --border-color: var(--gray-700);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s ease;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.05);
}

[data-theme="dark"] .navbar-custom {
    background: rgba(31, 41, 55, 0.95);
    border-bottom-color: var(--gray-700);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 0.875rem;
}

.appointment-form-container {
    max-width: 800px;
    width: auto;
    background: var(--bg-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.appointment-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

/* Footer Contrast */
.copyright-footer {
    text-align: center;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    font-size: 0.875rem;
}

.copyright-footer p {
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.copyright-footer a {
    color: #FFFFFF;
}

.copyright-footer a:hover {
    color: #8f8b8b;
}

[data-theme="dark"] .copyright-footer {
    color: var(--gray-200);
    background: rgba(31, 41, 55, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.disclaimer-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.6rem;
    font-weight: 600;
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.form-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: bold;
}

.success-icon {
    font-size: 2rem;
    color: var(--success-color);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.success-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-weight: bold;
}

.appointment-details-card {
    background: var(--bg-secondary);
    border: 2px solid var(--success-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

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

.details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.details-title i {
    color: var(--success-color);
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.detail-icon {
    width: 36px;
    height: 36px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.calendar-dropdown {
    position: relative;
    display: inline-block;
}

.calendar-dropdown .btn {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.calendar-dropdown .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s;
}

.calendar-dropdown .btn:hover::before {
    left: 100%;
}

.calendar-dropdown .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    text-decoration: none;
}

.calendar-dropdown .dropdown-menu {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    padding: 1rem;
    min-width: 250px;
    margin-top: 0.5rem;
}

[data-theme="dark"] .calendar-dropdown .dropdown-menu {
    background: var(--bg-secondary);
    border-color: var(--gray-600);
}

.calendar-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.calendar-dropdown .dropdown-menu a:last-child {
    margin-bottom: 0;
}

.calendar-dropdown .dropdown-menu a:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: var(--primary-color);
    transform: translateX(4px);
    text-decoration: none;
    color: var(--text-color);
}

.calendar-dropdown .dropdown-menu a img {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.calendar-dropdown .dropdown-menu a em {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.calendar-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.calendar-title i {
    color: var(--primary-color);
}

.calendar-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.calendar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-calendar {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s;
}

.btn-calendar:hover::before {
    left: 100%;
}

.btn-calendar:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    color: var(--text-color);
    text-decoration: none;
}

.google-calendar:hover {
    border-color: #4285f4;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
}

.outlook-calendar:hover {
    border-color: #0078d4;
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.15);
}

.ics-calendar:hover {
    border-color: var(--success-color);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.next-steps-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.next-steps-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.next-steps-title i {
    color: var(--primary-color);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: .6rem;
    line-height: 1.5;
}

.contact-info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-title i {
    color: var(--primary-color);
}

.contact-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.disqualification-message {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .disqualification-message {
    background: linear-gradient(135deg, #451A03 0%, #78350F 100%);
    border-color: #D97706;
}

.disqualification-message .icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.disqualification-message h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.disqualification-message p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar-custom {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .progress-bar-custom {
    background: var(--gray-700);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 16.66%;
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--progress-bar-bg));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    cursor: pointer;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .step-circle {
    background: var(--gray-700);
    color: var(--gray-400);
}

.step-indicator.active .step-circle,
.step-indicator.completed .step-circle {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.step-indicator.completed .step-circle {
    background: var(--success-color);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step-indicator.active .step-label,
.step-indicator.completed .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-content {
    padding: 1rem 0;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.step-title i {
    color: var(--primary-color);
}

.step-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.qualification-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qualification-option {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qualification-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s;
}

.qualification-option:hover::before {
    left: 100%;
}

.qualification-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.qualification-option.selected {
    border-color: var(--primary-color);
    background: rgba(30, 58, 138, 0.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.qualification-option .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.qualification-option.yes .icon {
    color: var(--success-color);
}

.qualification-option.no .icon {
    color: var(--error-color);
}

.qualification-option h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.qualification-option p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--error-color);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--error-color);
    margin-top: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-control.is-invalid+.invalid-feedback,
.form-select.is-invalid+.invalid-feedback {
    opacity: 1;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.checkbox-card p {
    font-size: 0.75rem;
}

.checkbox-card input {
    border-color: #000000;
}

.term-links {
    font-size: 0.85rem;
}

.review-section {
    margin-top: 1rem;
}

.review-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-2px);
}

.review-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.review-card h5 i {
    color: var(--primary-color);
}

.review-content {
    color: var(--text-muted);
    line-height: 1.6;
}

.review-content p {
    margin-bottom: 0.5rem;
}

.review-content p:last-child {
    margin-bottom: 0;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: white;
    text-decoration: none;
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--text-color);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: var(--gray-800);
    color: var(--text-color);
    border-color: var(--gray-600);
}

#darkModeToggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

#darkModeToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .appointment-form-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .form-title,
    .success-title {
        font-size: 1.75rem;
    }

    .form-subtitle,
    .success-subtitle {
        font-size: 1rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .qualification-options {
        gap: 0.75rem;
    }

    .form-navigation {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .copyright-footer {
        font-size: 0.75rem;
        padding: 0.75rem 0;
    }

    .details-grid {
        gap: 0.75rem;
    }

    .detail-item {
        padding: 0.5rem;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .detail-label {
        font-size: 0.6875rem;
    }

    .detail-value {
        font-size: 0.8125rem;
    }

    .calendar-buttons {
        flex-direction: column;
    }

    .contact-buttons {
        flex-direction: column;
    }
    
    .calendar-dropdown .dropdown-menu {
        min-width: 200px;
    }

    .term-links {
        font-size: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .appointment-form-container {
        margin: 0;
        padding: var(--mobile-container-padding);
        border-radius: 14px;
    }

    .form-header {
        margin-bottom: 0.5rem;
    }

    .form-title,
    .success-title {
        font-size: 1.25rem;
    }

    .form-subtitle,
    .success-subtitle {
        font-size: 0.75rem;
    }

    .details-title {
        font-size: 1.1rem;
        margin-bottom: 1.1rem;
    }

    .progress-container {
        margin-bottom: 0.5rem;
    }

    .progress-bar-custom {
        height: var(--mobile-progress-height);
        margin-bottom: .6rem;
        margin-top: .6rem;
    }

    .progress-steps {
        display: none;
    }

    .step-label {
        display: none;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-content {
        padding: var(--mobile-form-padding);
    }

    .step-description {
        font-size: .75rem;
    }

    .form-navigation {
        justify-content: center;
        padding-top: 1rem;
    }

    .btn {
        flex: 1;
        max-width: var(--mobile-button-max-width);
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-gap-medium);
    }

    .detail-content {
        text-align: center;
    }

    .qualification-options {
        display: flex;
        gap: var(--mobile-gap-medium);
        margin-top: var(--mobile-gap-medium);
    }

    .qualification-option {
        padding: 1rem;
    }

    .form-label {
        margin-bottom: var(--mobile-gap-small);
    }

    .form-control,
    .form-select {
        padding: var(--mobile-input-padding);
    }

    .invalid-feedback {
        font-size: 0.625rem;
    }

    .checkbox-card {
        font-size: 0.7rem;
        padding: var(--mobile-gap-small);
    }

    .disqualification-message {
        border-radius: 8px;
        padding: 1rem;
        margin-top: .4rem;
        margin-bottom: 1rem;
    }

    .disqualification-message .icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .disqualification-message h3 {
        color: var(--text-color);
        font-size: 1.15rem;
        margin-bottom: .2rem;
    }

    .disqualification-message p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

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

.form-step.active {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled::before {
    display: none;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.3);
        --border-color: var(--gray-400);
    }

    .form-control,
    .form-select {
        border-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}