/* ==============================================
   CUSTOM CSS FOR AGENTIC AI CONTACT US PAGE
   ============================================== */

/* Root Variables */
:root {
    --primary-color: #012D61;
    --primary-hover: #0A4B8C;
    --text-muted: #717182;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 0.625rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero-section {
    background: linear-gradient(135deg, #012D61 0%, #0A4B8C 100%);
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.bg-element-1 {
    width: 8rem;
    height: 8rem;
    top: 5rem;
    left: 2.5rem;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 10rem;
    height: 10rem;
    bottom: 2.5rem;
    right: 2.5rem;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-badge {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-badge-custom {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ==============================================
   HELP SECTION
   ============================================== */

.help-section {
    padding: 5rem 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.help-card {
    border: 2px solid transparent !important;
    border-radius: var(--border-radius-lg) !important;
    transition: var(--transition-normal);
    background: white;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.help-card:nth-child(1) { animation-delay: 0.1s; }
.help-card:nth-child(2) { animation-delay: 0.2s; }
.help-card:nth-child(3) { animation-delay: 0.3s; }
.help-card:nth-child(4) { animation-delay: 0.4s; }

.help-card:hover {
    border-color: rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.help-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.help-card:hover .help-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.help-icon {
    font-size: 2rem;
    color: white;
}

.help-text {
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition-fast);
}

.help-card:hover .help-text {
    color: #374151 !important;
}

/* ==============================================
   CONTACT FORM SECTION
   ============================================== */

.contact-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #e3f2fd 100%);
}

.contact-form-card {
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    border: none !important;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.form-control-custom {
    border: 2px solid #e5e7eb !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    transition: var(--transition-fast) !important;
    background: #f9fafb !important;
}

.form-control-custom:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background: white !important;
    transform: scale(1.01);
}

.form-label {
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.btn-custom {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    padding: 1rem 3rem !important;
    transition: var(--transition-normal) !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-custom:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl) !important;
}

.btn-custom:active {
    transform: translateY(0) scale(0.98);
}

/* ==============================================
   CONTACT INFO SECTION
   ============================================== */

.contact-info-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-method-card {
    background: white !important;
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid #e5e7eb !important;
    transition: var(--transition-normal) !important;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease forwards;
}

.contact-method-card:nth-child(1) { animation-delay: 0.1s; }
.contact-method-card:nth-child(2) { animation-delay: 0.2s; }
.contact-method-card:nth-child(3) { animation-delay: 0.3s; }

.contact-method-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl) !important;
}

.contact-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.contact-method-card:hover .contact-icon-wrapper {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 1.75rem;
    color: white;
}

.contact-method-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-method-text {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-arrow-wrapper {
    opacity: 0;
    transition: var(--transition-fast);
}

.contact-method-card:hover .contact-arrow-wrapper {
    opacity: 1;
}

.contact-arrow {
    width: 2rem;
    height: 2rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6b7280;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==============================================
   MAP SECTION
   ============================================== */

.map-container {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.6s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.map-placeholder {
    height: 24rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #c5cae9 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
}

.map-grid {
    opacity: 0.2;
    z-index: 1;
}

.grid-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.grid-container::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    background-image: 
        linear-gradient(to right, #d1d5db 1px, transparent 1px),
        linear-gradient(to bottom, #d1d5db 1px, transparent 1px);
    background-size: calc(100% / 8) calc(100% / 6);
}

.map-roads {
    z-index: 2;
}

.road {
    background: rgba(156, 163, 175, 0.6);
    position: absolute;
}

.road-horizontal-1 {
    top: 33.33%;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.road-vertical-1 {
    top: 0;
    bottom: 0;
    left: 33.33%;
    width: 0.5rem;
}

.road-horizontal-2 {
    bottom: 25%;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.road-vertical-2 {
    top: 0;
    bottom: 0;
    right: 25%;
    width: 0.5rem;
}

.map-buildings {
    z-index: 3;
}

.building {
    background: rgba(107, 114, 128, 0.4);
    border-radius: 0.125rem;
    position: absolute;
}

.building-1 {
    top: 25%;
    left: 25%;
    width: 2rem;
    height: 1.5rem;
}

.building-2 {
    top: 50%;
    left: 16.67%;
    width: 1.5rem;
    height: 2rem;
}

.building-3 {
    bottom: 33.33%;
    right: 33.33%;
    width: 2.5rem;
    height: 1.5rem;
}

.map-marker {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: markerPulse 2s ease-in-out infinite;
}

.marker-pin {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: markerFloat 2s ease-in-out infinite;
}

.marker-icon {
    font-size: 1.25rem;
    color: white;
}

.marker-shadow {
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary-color);
    opacity: 0.6;
    border-radius: 50%;
    margin: 0.25rem auto 0;
}

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

@keyframes markerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.map-controls {
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.map-control-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: #6b7280;
}

.map-control-btn:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.map-info {
    bottom: 1rem;
    left: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    max-width: 20rem;
    z-index: 5;
}

.map-info-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-info-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.map-info-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.map-footer-btn {
    background: var(--primary-color) !important;
    border: none !important;
    transition: var(--transition-fast) !important;
}

.map-footer-btn:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.05);
}

/* ==============================================
   ANIMATIONS & EFFECTS
   ============================================== */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Form focus effects */
.form-group-focus {
    transform: scale(1.02);
    transition: var(--transition-fast);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    100% {
        left: 100%;
    }
}

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

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .help-section,
    .contact-form-section,
    .contact-info-section {
        padding: 3rem 0;
    }
    
    .bg-element-1,
    .bg-element-2 {
        display: none;
    }
    
    .map-placeholder {
        height: 20rem;
    }
    
    .map-info {
        max-width: 16rem;
        padding: 0.75rem;
    }
    
    .contact-form-card .card-body {
        padding: 2rem !important;
    }
    
    .btn-custom {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-card .card-body {
        padding: 1.5rem !important;
    }
    
    .map-info {
        max-width: 14rem;
        padding: 0.5rem;
    }
    
    .map-info-title {
        font-size: 0.75rem;
    }
    
    .map-info-subtitle {
        font-size: 0.625rem;
    }
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-xl);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--primary-hover)) border-box;
}

.blur-background {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==============================================
   ACCESSIBILITY & KEYBOARD NAVIGATION
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-element {
        animation: none !important;
    }
    
    .marker-pin {
        animation: none !important;
    }
    
    .map-marker {
        animation: none !important;
    }
}

/* Enhanced focus styles for accessibility */
.keyboard-nav button:focus-visible,
.keyboard-nav input:focus-visible,
.keyboard-nav select:focus-visible,
.keyboard-nav textarea:focus-visible {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 1px white, 0 0 0 4px var(--primary-color) !important;
}

.keyboard-nav .help-card:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(1, 45, 97, 0.2) !important;
}

.keyboard-nav .contact-method-card:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(1, 45, 97, 0.2) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-badge-custom {
        border: 2px solid white !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .help-card {
        border: 2px solid var(--primary-color) !important;
    }
    
    .contact-method-card {
        border: 2px solid var(--primary-color) !important;
    }
    
    .form-control-custom {
        border: 2px solid var(--primary-color) !important;
    }
    
    .btn-custom {
        border: 2px solid white !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus trap for modals */
.focus-trap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .help-card .card-body {
        padding: 1.5rem !important;
    }
    
    .help-icon-wrapper {
        width: 3rem;
        height: 3rem;
    }
    
    .help-icon {
        font-size: 1.5rem;
    }
    
    .contact-form-card .card-body {
        padding: 1rem !important;
    }
    
    .btn-custom {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .contact-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .contact-icon {
        font-size: 1.25rem;
    }
    
    .map-placeholder {
        height: 16rem;
    }
    
    .map-info {
        max-width: 12rem;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .map-info-title {
        font-size: 0.625rem;
    }
    
    .map-info-subtitle {
        font-size: 0.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-card .card-body {
        padding: 2rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .help-section,
    .contact-form-section,
    .contact-info-section {
        padding: 4rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ==============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================== */

/* GPU acceleration for animations */
.help-card,
.contact-method-card,
.btn-custom,
.form-control-custom,
.map-marker,
.bg-element {
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Optimize for high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-badge-custom {
        border-width: 0.5px;
    }
    
    .help-card {
        border-width: 1px;
    }
    
    .contact-method-card {
        border-width: 1px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 1rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
    }
    
    .help-card,
    .contact-method-card,
    .contact-form-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    
    .map-container {
        display: none !important;
    }
    
    .bg-element {
        display: none !important;
    }
    
    .btn-custom {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

/* ==============================================
   CUSTOM SCROLLBAR
   ============================================== */

/* Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* ==============================================
   DARK MODE SUPPORT (OPTIONAL)
   ============================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --background-dark: #1a1a1a;
        --text-dark: #ffffff;
        --card-dark: #2a2a2a;
        --border-dark: rgba(255, 255, 255, 0.1);
    }
    
    /* Apply dark mode only if explicitly enabled */
    .dark-mode {
        background: var(--background-dark);
        color: var(--text-dark);
    }
    
    .dark-mode .help-section,
    .dark-mode .contact-info-section {
        background: var(--background-dark) !important;
    }
    
    .dark-mode .contact-form-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    }
    
    .dark-mode .help-card,
    .dark-mode .contact-method-card,
    .dark-mode .contact-form-card {
        background: var(--card-dark) !important;
        border-color: var(--border-dark) !important;
        color: var(--text-dark) !important;
    }
    
    .dark-mode .form-control-custom {
        background: var(--card-dark) !important;
        border-color: var(--border-dark) !important;
        color: var(--text-dark) !important;
    }
    
    .dark-mode .section-title {
        color: var(--text-dark) !important;
    }
    
    .dark-mode .map-placeholder {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    }
}

/* ==============================================
   COMPONENT-SPECIFIC IMPROVEMENTS
   ============================================== */

/* Enhanced loading states */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Success states */
.form-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2) !important;
}

/* Error states */
.form-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

/* Improved map interactions */
.map-placeholder:hover {
    cursor: pointer;
}

.map-control-btn:active {
    transform: scale(0.95);
}

/* Enhanced button states */
.btn-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-custom.loading {
    position: relative;
    color: transparent !important;
}

.btn-custom.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-loading-spinner 1s linear infinite;
}

@keyframes btn-loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea, .card, .help-card, .contact-method-card {
    transition: var(--transition-fast);
}

/* Ensure proper spacing on all screen sizes */
.section-spacing {
    padding: clamp(2rem, 5vw, 5rem) 0;
}

/* Improved text readability */
.hero-subtitle,
.help-text,
.contact-method-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}