/* styles_contact.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500&display=swap');

/* Base ------------------------------------------------------------------ */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Slab', serif;
    background: #fff;
    color: #000;
}

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

/* Hero ------------------------------------------------------------------ */
.contact-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 75px auto;
}

.contact-hero h1 {
    margin: 0 0 25px 0;
    font-size: 2rem;
    font-weight: 500;
    color: #000;
}

.contact-intro {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #000;
}

/* Layout ---------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 75px;
    align-items: start;
}

/* Info box --------------------------------------------------------------- */
.contact-info-box {
    background: #2d3292;
    border-radius: 25px;
    padding: 34px 30px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.contact-info-box h2 {
    margin: 0 0 20px 0;
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
}

.contact-info-box p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: #fff;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

/* Form ------------------------------------------------------------------ */
.contact-form {
    background: #4169e1;
    border-radius: 25px;
    padding: 34px 30px 38px 30px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Inner bordered panel, matching the preview_conference.php contact fieldset */
.contact-form-panel {
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 0 25px 35px 25px;
    margin: 0 0 35px 0;
    box-sizing: border-box;
}

.contact-form-legend {
    padding: 0 10px;
    margin: 0 auto;
    font-family: 'Roboto Slab', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
}

.contact-form-row {
    display: grid;
    gap: 10px;
}

.contact-form-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-field {
    margin-bottom: 0;
    text-align: center;
}

.contact-field label {
    display: block;
    margin-top: 30px;
    margin-bottom: 25px;
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}

.contact-field label span {
    color: #fff;
}

.contact-required-note span {
    color: #b3ffcc;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    border: 2px solid #4169e1;
    border-radius: 25px;
    background: #fff;
    color: #000;
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 25px;
    margin-top: 0;
    margin-bottom: 0;
    outline: none;
    text-align: left;
    transition: border-color 0.2s ease;
}

.contact-field input,
.contact-field select {
    height: 60px;
}

.contact-form-row--two .contact-field input {
    max-width: none;
}

.contact-field select {
    cursor: pointer;
}

.contact-field textarea {
    min-height: 220px;
    resize: vertical;
    padding-top: 18px;
    padding-bottom: 18px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: #fff solid 1px;
    border-color: #4169e1;
    box-shadow: none;
}

.contact-help-text {
    width: 100%;
    max-width: 600px;
    margin: 8px auto 0 auto;
    font-size: 0.9rem;
    font-weight: 300;
    color: #fff;
    text-align: left;
}

.contact-required-note {
    width: 100%;
    max-width: 600px;
    margin: 24px auto 0 auto;
    text-align: left;
}

.contact-required-note p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    color: #fff;
}

/* Button ---------------------------------------------------------------- */
.contact-submit-wrap {
    text-align: center;
}

.contact-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    border: 2px solid #fff;
    background: #2b50e0;
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: background-color 0.3s ease,
                transform 0.06s ease-in-out,
                box-shadow 0.12s ease-in-out;
}

.contact-btn:hover,
.contact-btn:focus {
    outline: none;
    background: #1e3ab3;
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* Fade-up reveal animation --------------------------------------------- */
.contact-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-reveal--delay-1 {
    transition-delay: 0.12s;
}

.contact-reveal--delay-2 {
    transition-delay: 0.24s;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-container {
        width: 94%;
        margin-top: 60px;
    }

    .contact-hero {
        margin-bottom: 60px;
    }

    .contact-layout {
        gap: 45px;
    }

    .contact-info-box,
    .contact-form {
        padding: 30px 24px;
    }

    .contact-form-panel {
        padding: 0 18px 30px 18px;
    }

    .contact-form-row--two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-field label {
        font-size: 17px;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 17px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-btn {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-btn,
    .contact-reveal {
        transition: none;
    }

    .contact-reveal {
        opacity: 1;
        transform: none;
    }
}