/* =========================================================
   RAIH PUBLIC ENQUIRY
========================================================= */

.public-enquiry-section {
    margin-top: 28px;

    text-align: left;
}

.public-enquiry-card {
    position: relative;
    overflow: hidden;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8ff
        );

    border: 1px solid #dddff4;
    border-radius: 18px;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, .06);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.public-enquiry-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -90px;
    right: -70px;

    background:
        rgba(91, 92, 226, .11);

    border-radius: 50%;
}

.public-enquiry-heading {
    position: relative;

    margin-bottom: 18px;
}

.public-enquiry-eyebrow {
    margin-bottom: 5px;

    color: #5b5ce2;

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.public-enquiry-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 18px;
    font-weight: 850;

    line-height: 1.25;
    letter-spacing: -.025em;
}

.public-enquiry-heading p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   CONTEXTUAL OFFERING
========================================================= */

.public-enquiry-context {
    position: relative;

    margin: -4px 0 16px;
    padding: 11px 13px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    background: #eefcf6;
    border: 1px solid #bbf7d0;
    border-radius: 12px;

    box-shadow:
        0 6px 18px
        rgba(22, 101, 52, .06);
}

.public-enquiry-context[hidden] {
    display: none !important;
}

.public-enquiry-context-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #166534;
    background: #dcfce7;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.public-enquiry-context-copy {
    min-width: 0;
    flex: 1;
}

.public-enquiry-context-label {
    margin-bottom: 2px;

    color: #166534;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-enquiry-context-value {
    color: #14532d;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;

    word-break: break-word;
}

.public-enquiry-select.contextual-selected {
    border-color: #86efac;

    box-shadow:
        0 0 0 3px
        rgba(34, 197, 94, .10);
}

.public-enquiry-card.contextual-focus {
    border-color: #8b5cf6;

    box-shadow:
        0 0 0 4px
        rgba(91, 92, 226, .10),
        0 14px 32px
        rgba(91, 92, 226, .12);

    transform: translateY(-1px);
}


/* =========================================================
   SUCCESS
========================================================= */

.public-enquiry-success {
    margin-bottom: 15px;
    padding: 12px 13px;

    color: #166534;
    background: #ecfdf3;

    border: 1px solid #bbf7d0;
    border-radius: 11px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}


/* =========================================================
   ERRORS
========================================================= */

.public-enquiry-errors {
    margin-bottom: 15px;
    padding: 12px 13px;

    color: #991b1b;
    background: #fef2f2;

    border: 1px solid #fecaca;
    border-radius: 11px;

    font-size: 10px;
    line-height: 1.55;
}

.public-enquiry-errors strong {
    display: block;

    margin-bottom: 4px;
}


/* =========================================================
   FIELDS
========================================================= */

.public-enquiry-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.public-enquiry-field {
    margin-bottom: 12px;
}

.public-enquiry-field.full {
    grid-column: 1 / -1;
}

.public-enquiry-field label {
    display: block;

    margin-bottom: 6px;

    color: #334155;

    font-size: 10px;
    font-weight: 800;
}

.public-enquiry-required {
    color: #dc2626;
}

.public-enquiry-input,
.public-enquiry-select,
.public-enquiry-textarea {
    width: 100%;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #dbe3ec;
    border-radius: 11px;

    outline: none;

    font-size: 11px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.public-enquiry-input,
.public-enquiry-select {
    height: 44px;

    padding: 0 12px;
}

.public-enquiry-textarea {
    min-height: 95px;

    padding: 11px 12px;

    resize: vertical;

    line-height: 1.55;
}

.public-enquiry-input::placeholder,
.public-enquiry-textarea::placeholder {
    color: #a0aec0;
}

.public-enquiry-input:focus,
.public-enquiry-select:focus,
.public-enquiry-textarea:focus {
    border-color: #5b5ce2;

    box-shadow:
        0 0 0 3px
        rgba(91, 92, 226, .08);
}


/* =========================================================
   SUBMIT
========================================================= */

.public-enquiry-submit {
    width: 100%;
    min-height: 48px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #5b5ce2,
            #4338ca
        );

    border: 0;
    border-radius: 12px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 850;

    box-shadow:
        0 9px 20px
        rgba(91, 92, 226, .19);
}

.public-enquiry-submit:hover {
    filter: brightness(1.03);
}

.public-enquiry-privacy {
    margin-top: 10px;

    color: #94a3b8;

    text-align: center;

    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 540px) {

    .public-enquiry-card {
        padding: 17px;
    }

    .public-enquiry-grid {
        grid-template-columns: 1fr;
    }

    .public-enquiry-field.full {
        grid-column: auto;
    }

    .public-enquiry-context {
        margin: -2px 0 14px;
        padding: 10px 11px;
        gap: 9px;
    }

    .public-enquiry-context-icon {
        width: 20px;
        height: 20px;

        flex-basis: 20px;

        font-size: 11px;
    }

    .public-enquiry-context-label {
        font-size: 8px;
    }

    .public-enquiry-context-value {
        font-size: 11px;
        line-height: 1.4;
    }
}