/* =========================================================
   RD3 COMPONENTS — CONTACT FORM
   Conformed to RD3 Process Component Design System
   ========================================================= */

/* Wrap & Container */
.rd3-contact-wrap {
    width:100%;

}

.rd3-contact-card {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.rd3-contact-body-form {
    padding: 25px 30px;
    background-color: #ffffff;
    border-radius: 8px;

    border: 2px solid #993333;
}

/* Hidden Elements */
.rd3-contact-header,
.rd3-contact-footer {
    display: none;
}

/* Form Sections */
.rd3-contact-section {
    margin-top: 28px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    color: #993333;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #993333;
}

.rd3-contact-section:first-child {
    margin-top: 0;
}

/* Fields & Grid */
.rd3-field {
    margin-bottom: 16px;
}

.rd3-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rd3-field label {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
   
}

.rd3-field label .required,
.end-note .required{
    color: #993333;
    font-size: 15px;
}



.end-note, .end-note-required{
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}
.rd3-help-note {
    margin: -2px 0 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

/* Controls & Inputs */
.rd3-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #000000;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rd3-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #993333;
    box-shadow: 0 0 0 3px rgba(153, 51, 51, 0.15);
}

textarea.rd3-control {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.rd3-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    background-color: #993333;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.rd3-submit:hover {
    background-color: #7f2929;
}

.rd3-submit:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.rd3-submit.submitted {
    background-color: #198754;
    cursor: default;
}

/* Status Messages */
.rd3-contact-status {
    display: none;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.rd3-contact-status.success {
    display: block;
    color: #166534;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #198754;
}

.rd3-contact-status.error {
    display: block;
    color: #991b1b;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc3545;
}

/* Security Field */
.rd3-hp-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Header/Footer Fallbacks (If toggled on) */
.rd3-contact-header {
    padding: 20px;
    background-color: #993333;
    color: #ffffff;
}

.rd3-contact-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rd3-contact-logo {
    flex: 0 0 auto;
    padding: 6px 10px;
    background-color: #ffffff;
    border-radius: 6px;
}

.rd3-contact-logo img {
    display: block;
    max-width: 95px;
    max-height: 95px;
    height: auto;
}

.rd3-contact-brand h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.rd3-contact-brand p {
    margin: 4px 0 0;
    color: #f1f5f9;
    font-size: 13px;
}

.rd3-contact-footer {
    padding: 14px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.rd3-contact-footer p {
    margin: 0;
    color: #475569;
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (Aligned to Process Component Grid)
   ========================================================= */

@media (max-width: 1024px) {
    .rd3-contact-wrap {
        width: 85%;
    }
}

@media (max-width: 767px) {
    .rd3-contact-wrap {
        width: 100%;
        margin: 0;
    }

    .rd3-contact-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .rd3-contact-body-form {
        padding: 20px 16px;
        margin-top: 15px;
    }

    .rd3-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 450px) {
    .rd3-control {
        font-size: 16px; /* Prevents zoom-on-focus in mobile WebKit */
    }
}