﻿/* wwwroot/css/contact.css */

/* --- Ensure CSS variables from site.css (:root) are available --- */

.contact-page-container {
    padding: 3em 1em 4em 1em;
    /* Uses global body background gradient */
    color: var(--light-text);
    min-height: 80vh;
}

.page-title.contact-title {
    text-align: center;
    font-family: 'Bebas Neue', 'Oswald', Arial, sans-serif;
    font-size: clamp(3.8em, 10vw, 7.5em);
    color: var(--primary-orange); /* Orange accent for contact */
    margin-bottom: 0.5em;
    text-shadow: 0 0 5px var(--primary-orange), 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

/* Wrapper for the form, using content-section styles */
.contact-form-wrapper {
    max-width: 700px; /* Limit form width */
    /* Inherits background, padding, etc. from .content-section in site.css */
    border-left-color: var(--primary-orange); /* Match title accent */
}

    .contact-form-wrapper h2 { /* If using h2 inside */
        color: var(--primary-orange);
        border-bottom-color: var(--primary-orange);
    }

.contact-intro {
    text-align: center;
    color: var(--medium-text);
    margin-bottom: 2em;
    font-size: 1.05em;
    line-height: 1.6;
}

/* Form styling */
.contact-form {
    /* Add spacing if needed */
}

/* Using Bootstrap 5 floating labels - style the wrapper */
.form-floating {
    margin-bottom: 1.5rem !important; /* Ensure consistent spacing */
}

/* Style form controls for dark theme */
.form-control {
    background-color: rgba(0, 0, 0, 0.2); /* Darker input background */
    color: var(--light-text);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        background-color: rgba(0, 0, 0, 0.3);
        color: var(--light-text);
        border-color: var(--primary-orange);
        box-shadow: 0 0 0 0.25rem rgba(255, 152, 0, 0.3); /* Orange focus glow */
    }

/* Style floating labels for dark theme */
.form-floating > label {
    color: var(--medium-text); /* Dimmer label color */
}
/* Adjust label color when input has value or is focused */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-orange); /* Orange label when active/filled */
}

/* Adjust placeholder text color (though floating labels hide it mostly) */
.form-control::placeholder {
    color: var(--medium-text);
    opacity: 0.7;
}

/* Textarea height */
.form-control textarea {
    min-height: 150px; /* Ensure reasonable minimum height */
}

/* Validation message styling */
.text-danger {
    color: #ff8a80 !important; /* Lighter red for dark background */
    font-size: 0.85em;
    margin-top: 0.25rem;
}

.validation-summary {
    margin-bottom: 1rem;
    padding: 0.8em;
    background-color: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.5);
    border-radius: 5px;
}

    .validation-summary ul {
        margin-bottom: 0;
        padding-left: 1.2em;
    }


/* Submit button */
.submit-button-wrapper {
    margin-top: 2em;
}

.contact-submit-button {
    /* Inherits .cta-button base styles */
    background-color: var(--primary-orange);
    color: #000; /* Black text on orange */
    font-weight: bold;
}

    .contact-submit-button:hover {
        background-color: #fb8c00; /* Slightly darker orange */
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    }

    .contact-submit-button i {
        margin-right: 0.5em;
    }

/* Success message styling */
.alert.contact-alert {
    max-width: 100%; /* Allow alert to fill container */
    margin-bottom: 2em;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .contact-page-container {
        padding: 2em 0.5em 3em 0.5em;
    }

    .contact-intro {
        font-size: 1em;
    }
}
