/* ============================================================
   BHARAT BIOENERGY AND RENEWABLE
   ENQUIRY FORM
   ------------------------------------------------------------
   Brand palette (from brand book):
     Orange gradient : #E66A20  ->  #FCC217
     Green  gradient : #588638  ->  #C3D210
     Blue   gradient : #14799B  ->  #2DBBD7
     Secondary green : #81B033
     Secondary blue  : #1384B0
   Typography: Montserrat (Bold titles / Medium-Regular body)
   ============================================================ */

:root {
    --bb-orange-start: #e66a20;
    --bb-orange-end: #fcc217;
    --bb-green-start: #588638;
    --bb-green-end: #c3d210;
    --bb-blue-start: #14799b;
    --bb-blue-end: #2dbbd7;
    --bb-green: #81b033;
    --bb-blue: #1384b0;

    --bb-ink: #1a1a1a;
    --bb-body: #666666;
    --bb-muted: #8a949c;
    --bb-line: #d5dee4;

    --bb-error: #dc3545;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(135deg, #f3f8ee 0%, #eef6fa 100%);
    color: var(--bb-ink);
}

/* ============================================================
   MAIN PAGE
   ============================================================ */

.page {
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ============================================================
   FORM CARD
   ============================================================ */

.form-card {
    position: relative;
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 24px;
    padding: 42px 48px 30px;
    box-shadow: 0 15px 50px rgba(20, 121, 155, 0.1);
    overflow: hidden;
}

/* Slim brand gradient strip across the top of the card */
.form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--bb-orange-start),
        var(--bb-orange-end) 22%,
        var(--bb-green) 50%,
        var(--bb-blue-end) 78%,
        var(--bb-blue-start)
    );
}

/* ============================================================
   LOGO
   ============================================================ */

.brand {
    text-align: center;
    margin-bottom: 12px;
}

.brand img {
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   ACCENT LINE
   ============================================================ */

.accent-line {
    width: 90px;
    height: 5px;
    margin: 10px auto 28px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--bb-orange-start),
        var(--bb-green),
        var(--bb-blue)
    );
}

/* ============================================================
   HEADING
   ============================================================ */

.eyebrow {
    margin: 0 0 4px;
    color: var(--bb-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

h1 {
    margin: 0;
    color: var(--bb-blue);
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.intro {
    margin: 12px 0 28px;
    color: var(--bb-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

/* ============================================================
   FORM GRID
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 18px;
}

.field {
    min-width: 0;
}

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

/* ============================================================
   LABELS
   ============================================================ */

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--bb-ink);
    font-size: 15px;
    font-weight: 600;
}

.field label span {
    color: var(--bb-green);
}

/* ============================================================
   INPUTS
   ============================================================ */

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--bb-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--bb-ink);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 500;
    outline: none;

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

.field input,
.field select {
    height: 52px;
    padding: 0 16px;
}

.field textarea {
    min-height: 105px;
    padding: 12px 16px;
    resize: vertical;
}

/* Focus */

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--bb-blue);
    box-shadow: 0 0 0 3px rgba(19, 132, 176, 0.12);
}

/* Error */

.error_input {
    border-color: var(--bb-error) !important;
}

/* ============================================================
   PER-FIELD VALIDATION MESSAGES (phone / email)
   ============================================================ */

.field-error {
    display: none;
    margin-top: 5px;
    color: var(--bb-error);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.field-error.visible {
    display: block;
}

/* ============================================================
   COMPANY NAME HELP TEXT
   ============================================================ */

.field-help {
    display: block;
    margin-top: 5px;
    color: var(--bb-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.field-help strong {
    color: var(--bb-blue);
}

/* ============================================================
   REMARKS COUNTER
   ============================================================ */

.counter {
    margin-top: 4px;
    text-align: right;
    color: var(--bb-muted);
    font-size: 11px;
    font-weight: 500;
}

/* ============================================================
   BUTTON
   ============================================================ */

#submit_button {
    width: 100%;
    height: 54px;
    margin-top: 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        var(--bb-blue-start),
        var(--bb-blue-end)
    );
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 121, 155, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

#submit_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(20, 121, 155, 0.32);
}

#submit_button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.alert h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.alert p {
    margin: 0;
    line-height: 1.6;
}

.alert-success {
    background: #eef7e3;
    border: 1px solid #cfe6a6;
    color: #4c7a2c;
}

.alert-error {
    background: #fde7e7;
    border: 1px solid #f3bcbc;
    color: #9b2222;
}

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

#success_message {
    width: 100%;
    margin: 28px 0 0;
    padding: 24px;
    background: #eef7e3;
    border: 1px solid #cfe6a6;
    border-radius: 12px;
    color: #4c7a2c;
}

#success_message strong {
    display: block;
    margin: 0 0 8px;
    color: #588638;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

#success_message p {
    margin: 0;
    color: #4c7a2c;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

/* ============================================================
   SUCCESS STATE
   Logo + message only
   ============================================================ */

.form-card.success-state {
    padding-top: 48px;
    padding-bottom: 45px;
}

.form-card.success-state .brand {
    margin-bottom: 8px;
}

.form-card.success-state .accent-line {
    display: none;
}

.form-card.success-state #success_message {
    margin-top: 25px;
}

/* ============================================================
   PRIVACY NOTE
   ============================================================ */

.privacy-note {
    margin: 15px 0 0;
    text-align: center;
    color: var(--bb-muted);
    font-size: 11px;
    font-weight: 500;
}

/* ============================================================
   HONEYPOT
   ============================================================ */

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {
    .page {
        padding: 24px 16px;
    }

    .form-card {
        max-width: 760px;
        padding: 36px 30px 26px;
    }

    h1 {
        font-size: 44px;
    }
}

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

@media (max-width: 650px) {
    .page {
        padding: 15px 10px;
    }

    .form-card {
        padding: 30px 20px 22px;
        border-radius: 18px;
    }

    .brand img {
        width: 185px;
    }

    .accent-line {
        margin-bottom: 22px;
    }

    h1 {
        font-size: 36px;
    }

    .intro {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
        row-gap: 15px;
    }

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

    .field input,
    .field select {
        height: 50px;
    }

    .field textarea {
        min-height: 100px;
    }

    #success_message {
        padding: 20px;
    }

    #success_message strong {
        font-size: 22px;
    }

    #success_message p {
        font-size: 15px;
    }
}

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

@media (max-width: 400px) {
    .form-card {
        padding: 26px 16px 20px;
    }

    .brand img {
        width: 165px;
    }

    h1 {
        font-size: 31px;
    }

    .eyebrow {
        font-size: 12px;
    }

    .intro {
        font-size: 13px;
    }
}
