/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 50%, #80C0FF 100%);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #003E5E;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #003E5E, #005A9E);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.required-note {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== Form Wrapper ===== */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 62, 94, 0.1);
}

.contact-form {
    padding: 40px;
}

/* ===== Form Sections ===== */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003E5E;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #005A9E;
}

/* ===== Form Layout ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group-small {
    grid-column: span 1;
}

.form-group-medium {
    grid-column: span 1;
}

/* ===== Form Elements ===== */
.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #005A9E;
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.1);
    transform: translateY(-1px);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #005A9E;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* ===== Required Field Styling ===== */
.required {
    color: #e74c3c;
    font-weight: 600;
    margin-left: 2px;
}

/* ===== Error States ===== */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Submit Button ===== */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 62, 94, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.submit-button::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 ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 62, 94, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button:disabled::before {
    display: none;
}

.submit-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-button:hover .submit-icon {
    transform: translateX(3px);
}

/* ===== Toast Notifications ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: #28a745;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.toast.error {
    background: #e74c3c;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group-small,
    .form-group-medium {
        grid-column: span 1;
    }

    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .form-section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .submit-button {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }

    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .form-wrapper {
        border-radius: 12px;
        margin: 0 10px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
    }
}

/* ===== Accessibility Enhancements ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .contact-section,
    .form-input,
    .form-select,
    .form-textarea,
    .submit-button,
    .toast,
    .error-message {
        transition: none;
        animation: none;
    }

    .submit-button:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 3px;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-width: 3px;
        box-shadow: 0 0 0 2px currentColor;
    }
}

/* Focus visible for keyboard navigation */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.submit-button:focus-visible {
    outline: 2px solid #005A9E;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        background: white !important;
        color: black !important;
    }

    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }

    .form-wrapper {
        box-shadow: none;
        border: 2px solid #ccc;
    }

    .submit-button {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
    }
}

