/* Good Job Ministry - Speaking Invitations Section Styles */

.invite-section {
    background-color: #FFFFFF;
    width: 100%;
    padding: 6.25rem 3.75rem;
}

.invite-container {
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    gap: 11.75rem;
    width: 100%;
}

.invite-text-col {
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eyebrow-label--dark {
    width: fit-content;
    color: var(--color-brand-blue);
    margin: 0;
}

.invite-heading {
    width: fit-content;
    color: #05121E;
    font-weight: 700;
    line-height: 48px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    margin: 0;
}

.invite-paragraph {
    color: #0D2C4A;
    font-size: 1.25rem;
    line-height: 30px;
    margin: 0;
}

.invite-form {
    width: 39%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.invite-form__row {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    width: 100%;
}

.invite-form__field {
    width: 48.5%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-form__field--full {
    width: 100%;
}

.invite-form__field label {
    width: fit-content;
    color: #1D2739;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0%;
}

.invite-form__field input,
.invite-form__field textarea {
    width: 100%;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-family: "Lato", sans-serif;
    color: #12181F;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-form__field input:focus,
.invite-form__field textarea:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 3px rgba(9, 118, 222, 0.15);
}

.invite-form__field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.invite-form__field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.invite-form__field textarea {
    resize: vertical;
    min-height: 8.5rem;
}

.invite-form__field input::placeholder,
.invite-form__field textarea::placeholder {
    color: #A0AEC0;
}

.invite-form__submit {
    width: fit-content;
    background-color: var(--color-brand-blue);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 100%;
    font-weight: 600;
    letter-spacing: 0%;
    font-family: "Lato", sans-serif;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.invite-form__submit:hover {
    background-color: var(--color-brand-blue-hover);
}

.invite-form__submit:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .invite-section {
        padding: 6.25rem 1rem;
    }

    .invite-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .invite-text-col {
        width: 100%;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .invite-heading {
        text-align: center;
        font-size: clamp(1.5rem, 1.1rem + 4vw, 2rem);
        line-height: 1.2;
    }

    .invite-paragraph {
        text-align: center;
        font-size: 1rem;
        line-height: 1.5;
    }

    .invite-form {
        width: 100%; /* overrides the desktop 39% */
        gap: 2.5rem; /* spacing between fields, measured from the reference */
    }

    .invite-form__row {
        flex-direction: column; /* Name/Organization and Email/Date no longer sit side by side */
        gap: 2.5rem;
        margin-bottom: 0; /* overrides desktop margin-bottom to rely purely on gap */
    }

    .invite-form__field {
        width: 100%; /* overrides the desktop 48.5% */
    }

    .invite-form__field input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
        min-height: 2.75rem; /* iPhones render date inputs shorter than text inputs without this */
    }
}