/* Global */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #2c3e50;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* Hero Section */
.hero {
    background: url('/images/hero.png') center/cover no-repeat;
    height: 420px;
    position: relative;
}

.hero-overlay {
    background: rgba(0,0,0,0);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn-green {
    background: #2ecc71;
    color: white;
}

.btn-whitegreen {
    background: white;
    color: #2ecc71;
    cursor: pointer;
}

.btn-blue {
    background: #3498db;
    color: white;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    margin-left: 10px;
}

/* Feature Cards */
.features {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

    .feature-card h3 {
        margin-top: 0;
        font-size: 1.4rem;
    }

/* Stats */
.stats {
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
}

.stat-box {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    width: 30%;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

/* Fields */

.page-header {
    margin-top: 40px;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

.fields-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.field-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

    .field-card h3 {
        margin-top: 0;
        font-size: 1.4rem;
    }

    .field-card p {
        margin: 6px 0;
    }

    /*Contact*/
.contact-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

    .contact-card h3 {
        margin-top: 0;
        font-size: 1.3rem;
    }

.contact-email {
    margin-top: 50px;
    text-align: center;
}

    .contact-email h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

/* MOBILE FIX */
@media (max-width: 900px) {
    .feature-card {
        width: 48%; /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%; /* full width on mobile */
    }
}


/* ==================================
   Error Pulse Handling Matrix
================================== */
select.input-error,
select.input-error option {
    color: black;
    background: rgba(255, 51, 68, 0.15);
}

input[type="text"].input-error,
input[type="tel"].input-error,
input[type="email"].input-error,
textarea.input-error {
    border: 1px solid #ff3344 !important;
    background-color: rgba(255, 51, 68, 0.15) !important;
    background-image: none !important; /* Clears dropdown arrows if necessary during flash */
    animation: pulseRedFrame 0.4s ease-in-out 0s 2;
}

input[type="text"].input-error-message,
input[type="tel"].input-error-message,
input[type="email"].input-error-message,
.input-error-message {
    color: #d9534f; /* Bootstrap danger red */
    font-size: 0.85rem;
    margin-top: 3px;
    margin-bottom: 6px;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
