@import url("../new_layout_style.4bbc7b96f812.css"); /* Global shared styles like navbar/footer */


/* ================================
   Fluid Typography
================================ */
:root {
    --font-xs: clamp(0.8rem, 0.7rem + 0.3vw, 0.9rem);
    --font-sm: clamp(0.9rem, 0.8rem + 0.4vw, 1rem);
    --font-md: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    --font-lg: clamp(1.2rem, 1.1rem + 0.7vw, 1.6rem);
    --font-xl: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
    --font-xxl: clamp(2rem, 1.8rem + 1.5vw, 2.8rem);
}


/* === Page Container === */
.page-container {
    padding-top: 20px; /* Adjust to match navbar height */
    padding-bottom: 20px;
}

/* === Contact Section Layout === */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* === Required note under heading === */
.contact-container p.required-note {
    text-align: left;
    margin: 0 0 1rem;
    font-size: var(--font-md);
    color: #555;
}

/* === Contact Info (Left Column) === */
.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: #edf2ed;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 178, 72, 0.08);
    border-left: 4px solid #00b248;
    transition: box-shadow 0.3s ease;
}

.contact-info:hover {
    box-shadow: 0 6px 16px rgba(0, 128, 0, 0.1);
}

.contact-info h2 {
    font-size: var(--font-xl);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #009624, #1b5e20, #00b248);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 0.5rem;
}

.contact-info p {
    font-size: var(--font-sm);
    margin: 0.75rem 0;
    color: #333;
    line-height: 1.6;
}

.contact-info address {
    font-style: normal;
}

/* === Contact Form (Right Column) === */
.contact-form {
    flex: 2;
    min-width: 400px;
    background-color: #edf2ed;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 178, 72, 0.08);
    display: flex;
    flex-direction: column;
}

.contact-form:hover {
    box-shadow: 0 6px 16px rgba(0, 128, 0, 0.1);
}

.contact-form h2 {
    font-size: var(--font-xxl);
    margin-bottom: 0.7rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #1b5e20;
    background: linear-gradient(90deg, #009624, #1b5e20, #00b248);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form form {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-sizing: border-box;
}

/* === Form Groups === */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.required-star {
    color: red;
    margin-left: 4px;
}

/* === Input Fields === */
.contact-form input,
.contact-form textarea,
.contact-form select.form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: var(--font-sm);
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

/* Select dropdown arrow */
.contact-form select.form-select {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
}

.contact-form select.form-select option[value=""] {
    color: #999;
}

/* Focus States */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select.form-select:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}

/* === Buttons === */
.btn-submit {
    background-color: #00c853;
    color: white;
    padding: 0.85rem 1.5rem;
    font-size: var(--font-md);
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.2);
}

.btn-submit:hover {
    background-color: #009624;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 128, 0, 0.25);
}

/* === Messages (Django messages framework) === */
.messages {
    margin-bottom: 1.2rem;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: var(--font-sm);
    font-weight: 500;
}

.alert-success {
    background-color: #e6f7ed;
    border: 1px solid #00c853;
    color: #006b2b;
}

.alert-error,
.alert-danger {
    background-color: #fdecea;
    border: 1px solid #e53935;
    color: #b71c1c;
}

.alert-warning {
    background-color: #fff4e5;
    border: 1px solid #ffa000;
    color: #ff6f00;
}

.alert-info {
    background-color: #e8f4fd;
    border: 1px solid #039be5;
    color: #01579b;
}

/* === Inline Errors under fields === */
.form-group .error {
    color: #d32f2f;
    font-size: var(--font-xs);
    margin-top: 4px;
}

/* === Success Page Box === */
.success-container {
    max-width: 600px;
    margin: 5rem auto;
    padding: 2.5rem 3rem;
    background-color: #f0fff0;
    border: 2px solid #b2d8b2;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.1);
    box-sizing: border-box;
}

.success-container h2 {
    color: green;
    font-size: var(--font-xl);
    margin-bottom: 1rem;
}

.success-container p {
    font-size: var(--font-md);
    color: #333;
}

.return-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: #00c853;
    color: white;
    font-weight: bold;
    font-size: var(--font-md);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
}

.return-button:hover {
    background-color: limegreen;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(0, 255, 0, 0.5);
}

/* === Responsive === */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0.7rem;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        min-width: auto;
    }

    .contact-form h2 {
        font-size: var(--font-xl);
    }

    .contact-form form {
        padding: 0;
    }

    .contact-form select.form-select {
        font-size: var(--font-md);
        padding: 1rem 1.2rem;
        background-position: right 0.8rem center;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .contact-form select.form-select {
        font-size: var(--font-md);
        padding: 1.1rem 1.4rem;
        background-size: 1.2rem;
    }

    .success-container {
        margin: 3rem 1rem;
        padding: 2rem 1.5rem;
    }
}