﻿/* Base styles for Water Portal */
.services-section {
    min-height: 100vh;
    position: relative;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bg-gradient-top {
    background: radial-gradient(circle at top right, rgba(79, 172, 254, 0.3), transparent);
    pointer-events: none;
}

.bg-gradient-bottom {
    background: radial-gradient(circle at bottom left, rgba(245, 87, 108, 0.3), transparent);
    pointer-events: none;
}

.z-10 {
    z-index: 10;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.bg-card {
    background: rgba(255, 255, 255, 0.95);
}

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

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.border {
    border-width: 1px;
}

.border-border {
    border-color: rgba(255, 255, 255, 0.2);
}

.p-8 {
    padding: 2rem;
}

/* Header styles */
.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 3rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 1rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.bg-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Progress steps */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.step-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-inactive {
    background: #e9ecef;
    color: #6c757d;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e9ecef;
}

/* Form styles */
.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.gap-3 {
    gap: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-muted {
    color: #6c757d;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-primary {
    color: #667eea;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 1.5rem;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

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

.pt-4 {
    padding-top: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.gap-2 {
    gap: 0.5rem;
}

.font-semibold {
    font-weight: 600;
}

.hover-underline:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.5s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablets and smaller laptops (≤1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    .max-w-5xl {
        max-width: 90%;
    }

    .text-5xl {
        font-size: 2.5rem;
    }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .p-8 {
        padding: 1.5rem;
    }

    .mb-12 {
        margin-bottom: 2rem;
    }

    .text-5xl {
        font-size: 2rem;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .text-lg {
        font-size: 1rem;
    }

    .bg-gradient-primary {
        padding: 0.75rem;
    }

        .bg-gradient-primary img {
            width: 36px;
            height: 36px;
        }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-line {
        width: 40px;
    }

    .gap-4 {
        gap: 0.75rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .max-w-2xl {
        max-width: 100%;
    }
}

/* Mobile devices (≤576px) */
@media (max-width: 576px) {
    .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .py-12 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .p-8 {
        padding: 1rem;
    }

    .rounded-2xl {
        border-radius: 0.75rem;
    }

    .mb-12 {
        margin-bottom: 1.5rem;
    }

    .mb-8 {
        margin-bottom: 1.5rem;
    }

    .text-5xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .text-lg {
        font-size: 0.9375rem;
    }

    .text-sm {
        font-size: 0.8125rem;
    }

    .bg-gradient-primary {
        padding: 0.625rem;
    }

        .bg-gradient-primary img {
            width: 32px;
            height: 32px;
        }

    /* Progress steps - Stack vertically on mobile */
    .my-8 {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .step-line {
        width: 30px;
        height: 2px;
    }

    .gap-4 {
        gap: 0.5rem;
    }

    .gap-3 {
        gap: 0.5rem;
    }

    .gap-2 {
        gap: 0.375rem;
    }

    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 0.5rem;
    }

    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        gap: 0.375rem;
    }

        .btn-primary img {
            width: 14px;
            height: 14px;
        }

    /* Text wrapping improvements */
    .text-center p {
        padding: 0 0.5rem;
    }

    /* Header icon size */
    h2 img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Extra small devices (≤480px) */
@media (max-width: 480px) {
    .p-8 {
        padding: 0.75rem;
    }

    .text-5xl {
        font-size: 1.5rem;
    }

    .text-3xl {
        font-size: 1.125rem;
    }

    .bg-gradient-primary {
        padding: 0.5rem;
    }

        .bg-gradient-primary img {
            width: 28px;
            height: 28px;
        }

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

    .step-line {
        width: 24px;
    }

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

/* Very small devices (≤360px) */
@media (max-width: 360px) {
    .text-5xl {
        font-size: 1.375rem;
    }

    .text-3xl {
        font-size: 1rem;
    }

    .text-lg {
        font-size: 0.875rem;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.6875rem;
    }

    .step-line {
        width: 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }

    /* Increase touch target size */
    .btn-primary {
        min-height: 48px;
    }

    .form-control {
        min-height: 44px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .py-12 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .mb-12 {
        margin-bottom: 1rem;
    }

    .my-8 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-card {
        border: 2px solid #000;
    }

    .form-control {
        border: 2px solid #000;
    }

    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-scale-in,
    .animate-slide-up,
    .animate-pulse-glow {
        animation: none;
    }

    .btn-primary,
    .form-control,
    .step-circle {
        transition: none;
    }
}

/* Focus improvements for accessibility */
.btn-primary:focus,
.form-control:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bg-gradient-top,
    .bg-gradient-bottom {
        display: none;
    }

    .btn-primary {
        background: #667eea;
    }
}
