/* =========================================================
   GLOBAL BASE STYLES (ALL DEVICES)
   ========================================================= */

/* Header */
#header_title {
    margin-top: 100px;
    font-family: 'Open Sans', sans-serif;
}

#header_title h1 {
    font-size: 28px;
    color: #222222;
    font-weight: 400;
}

#header_title p {
    color: #222222;
    font-size: 15px;
    line-height: 22px;
    font-weight: 450;
}

#header_title a {
    color: #D83B2D;
    text-decoration: none;
}

#header_title a:hover {
    color: #EA9040;
}

#message_box {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
}

#message_box.success {
    color: green;
}

#message_box.error {
    color: #d83b2d;
}

.card,
.contact_section input,
.contact_section textarea,
#btnn {
    border-radius: 0 !important;
}

.contact_section .card {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Text colours */
.contact_section label,
.contact_section p {
    color: #58595b;
}

.contact_section h3 {
    color: rgb(184, 91, 13);
}

/* Mandatory star */
.mandatory-symbol {
    color: red;
}

/* Inputs & textarea (CRITICAL: prevents overflow) */
.contact_section input,
.contact_section textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
}

/* ===== RESTORE ORIGINAL CONTACT TEXT APPEARANCE ===== */

/* Labels */
.contact_section label {
    font-size: 14px;
    color: #6b6b6b;   /* matches old softer grey */
    font-weight: 400;
}

/* Paragraph text */
.contact_section p {
    font-size: 14px;
    color: #6b6b6b;
}

/* Inputs & textarea text */
.contact_section input,
.contact_section textarea {
    font-size: 14px;
    color: #051E4E;
}

/* Placeholder text (important visual match) */
.contact_section input::placeholder,
.contact_section textarea::placeholder {
    color: #9a9a9a;
    font-size: 14px;
}

/* ===== Restore Privacy Policy link styling ===== */
.contact_section a[href*="privacy"] {
    color: rgb(184, 91, 13);   /* original golden hue */
    font-size: 14px;           /* match older page */
    font-weight: 400;
    text-decoration: none;
}

.contact_section a[href*="privacy"]:hover {
    color: #EA9040;            /* same hover colour used earlier */
    text-decoration: none;
}

/* Tighten spacing above & below Privacy Policy row */
.contact_section .text-end {
    margin-top: -25px;   /* pulls it upward */
    margin-bottom: -20px; /* removes gap below */
}


/* Textarea sizing */
#description {
    min-height: 160px;
    resize: vertical;
}

/* Privacy link */
#privacy {
    text-align: right;
    font-family: 'Open Sans', sans-serif;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

#privacy a {
    color: rgb(184, 91, 13);
    text-decoration: none;
}

/* Button */
#btnn {
    background-color: #EB4B3E;
    color: #fff;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0;
}

#btnn:hover {
    background-color: #051E4E;
}

/* Errors */
.error {
    color: grey;
    font-size: 14px;
}

.hidden {
    display: none;
}

/* =========================================================
   CARD STYLES (SINGLE BORDER SOURCE)
   ========================================================= */

/* Shared card look */
.card {
    border: 2px solid #ccc;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
}

/* Remove legacy form borders completely */
.contact_section form {
    border: none !important;
    box-shadow: none !important;
}

/* Contact form card shadow (now clean & visible) */
.contact-card {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 0;
}

.contact-card,
.info-card {
    display: flex;
    flex-direction: column;
}

.contact-card .card-body,
.info-card .card-body {
    flex: 1 1 auto;
}

/* Info panel (RIGHT) */
.info-card {
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: rgb(184, 91, 13);
    font-weight: 500;
    margin-bottom: 15px;
}

.info-card p {
    margin-bottom: 8px;
}

/* =========================================================
   DESKTOP (=1200px)
   ========================================================= */
@media (min-width: 1200px) {

    #header_title h1 {
        margin-left: 83px;
    }

    #header_title p {
        margin-left: 420px;
    }

    /* Ensure form column expands correctly */
    .col-lg-8 {
        display: flex;
        flex-direction: column;
    }
	.contact_section .row > .col-lg-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .contact_section .row > .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* =========================================================
   TABLET (768px – 1199px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1199px) {

    #header_title p {
        display: none;
    }

    #header_title h1 {
        text-align: center;
    }

    .card {
        margin-bottom: 20px;
    }
}

/* =========================================================
   MOBILE (=767px)
   ========================================================= */
@media (max-width: 767px) {

    #header_title h1 {
        text-align: center;
        margin-left: 0;
    }

    #header_title p {
        display: none;
    }

    .card {
        margin: 10px;
    }

    #btnn {
        width: auto;
    }

    .info-card {
        margin-top: 20px;
    }
}
