/* forms.css.new - Styles for all forms across the site */

/* Contact hero section customizations */
.contact-hero .parallax-content {
    margin-bottom: 6rem; /* Ensure content sits lower in the viewport */
}

/* Contact page specific styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

@media (min-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact methods */
.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-method i {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-right: 1.5rem;
    width: 1.8rem;
    text-align: center;
}

.contact-method h3 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.contact-method p {
    margin: 0 0 0.3rem;
    color: var(--color-platinum);
    opacity: 0.8;
}

/* Contact form container */
.contact-form-container {
    background: rgba(25, 35, 58, 0.7);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* Map section */
.map-section {
    margin: 4rem 0;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* General form styles */
form {
    position: relative;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--color-gold);
    width: 0;
    transition: width 0.5s ease;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-platinum);
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--color-platinum);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
}

input.error, select.error, textarea.error {
    border-color: #ff5252;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Radio buttons and checkboxes */
.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.radio-label input, .checkbox-label input {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Form navigation buttons */
.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--color-gold);
    color: var(--color-navy);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background: #e1c47a;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.prev-btn {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.prev-btn:hover {
    background: rgba(212, 180, 106, 0.1);
}

/* Form success message */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success i {
    color: var(--color-gold);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Quick quote form styles */
.quick-quote-form {
    background: rgba(25, 35, 58, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

.quick-quote-form h3 {
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

.quick-quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .quick-quote-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.quick-quote-form button {
    width: 100%;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero form positioning */
.quick-quote-form.compact {
    position: absolute;
    top: 50%; /* Position at vertical center */
    transform: translateY(-50%); /* Adjust to center the form vertically */
    right: 5%;
    max-width: 400px;
    padding: 1.5rem;
    z-index: 20;
}

@media (max-width: 992px) {
    .quick-quote-form.compact {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 2rem auto;
        max-width: 500px;
    }
}

/* Form animation */
@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-quote-form {
    animation: formFadeIn 0.8s ease-out forwards;
}
