/* ============================================================
   MyceliaOS — Contact Us
   File: static/css/contact_us.css
   Split layout: white form (left) + navy info panel (right)
   No shadows used anywhere.
   Targets Django-rendered widgets ({{ form.field }}) directly
   since no custom widget classes are applied in the template.
   #3f444b
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Montserrat:wght@400;500;600&display=swap');

:root {
    --mycelia-grey: #3f444b;
    --mycelia-green: #00BD00;
    --mycelia-cyan: #01A3E2;

    --text-primary: var(--mycelia-navy);
    --text-muted: #5A6478;
    --text-ghost: #9AA3B5;
    --border: #E4E7EE;
    --input-bg: #FFFFFF;

    --error: #D64545;
    --error-bg: rgba(214, 69, 69, 0.06);

    --panel-width: 38%;
}

* {
    box-shadow: none;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ----------------------------------------------------------
   PAGE — two-column flex row
   ---------------------------------------------------------- */
.demo-page {
    display: flex;
    min-height: 100vh;
    background: #FAFBFC;
}

/* ----------------------------------------------------------
   LEFT: FORM PANEL
   ---------------------------------------------------------- */
.demo-form-panel {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    background: #FAFBFC;
    padding: 48px 0;
}

.demo-card {
    width: 100%;
    max-width: 560px;
    margin: 0 64px;
    box-sizing: border-box;
}

/* Back to home link */
.demo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}

.demo-back-link:hover {
    color: var(--mycelia-navy);
}

.demo-back-arrow {
    font-size: 15px;
    line-height: 1;
}

.demo-logo {
    display: block;
    max-width: 150px;
    height: auto;
    margin-bottom: 28px;
}

.demo-title {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mycelia-navy);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.demo-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   ALERTS / MESSAGES
   ---------------------------------------------------------- */
.demo-alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.demo-alert p {
    margin: 0;
}

.demo-alert--error {
    background: var(--error-bg);
    border: 1px solid var(--error);
    color: var(--error);
}

.demo-alert--success {
    background: rgba(0, 189, 0, 0.06);
    border: 1px solid var(--mycelia-green);
    color: #157A15;
}

.demo-alert--warning {
    background: rgba(214, 203, 180, 0.25);
    border: 1px solid #C9B98F;
    color: #7A6A3A;
}

.demo-alert--info,
.demo-alert--debug {
    background: rgba(1, 163, 226, 0.06);
    border: 1px solid var(--mycelia-cyan);
    color: #0A5A82;
}

/* ----------------------------------------------------------
   FORM LAYOUT / FIELDS
   ---------------------------------------------------------- */
.demo-form {
    display: flex;
    flex-direction: column;
}

.demo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.demo-row .demo-field {
    margin-bottom: 0;
}

/* ----------------------------------------------------------
   LABELS
   ---------------------------------------------------------- */
.demo-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1D2E;
}

/* ----------------------------------------------------------
   DJANGO-RENDERED WIDGETS
   {{ form.field }} outputs bare <input>/<select>/<textarea>
   with no custom classes, so target the elements directly
   ---------------------------------------------------------- */
.demo-field input[type="text"],
.demo-field input[type="email"],
.demo-field input[type="tel"],
.demo-field input[type="url"],
.demo-field select,
.demo-field textarea {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.demo-field input[type="text"]::placeholder,
.demo-field input[type="email"]::placeholder,
.demo-field textarea::placeholder {
    color: var(--text-ghost);
}

.demo-field input[type="text"]:focus,
.demo-field input[type="email"]:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    border-color: var(--mycelia-cyan);
}

.demo-field--error input[type="text"],
.demo-field--error input[type="email"],
.demo-field--error select,
.demo-field--error textarea {
    border-color: var(--error);
}

.demo-field textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.6;
}

/* Select dropdown arrow */
.demo-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300006D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.demo-field select option {
    color: var(--text-primary);
}

/* ----------------------------------------------------------
   CONSENT CHECKBOX
   ---------------------------------------------------------- */
.demo-field--consent {
    background: #F3F4FB;
    border: 1px solid #E1E3F5;
    border-radius: 8px;
    padding: 14px 16px;
    flex-direction: row;
    align-items: flex-start;
}

.demo-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.demo-field--consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--mycelia-navy);
    cursor: pointer;
}

.demo-field--consent.demo-field--error {
    border-color: var(--error);
}

/* ----------------------------------------------------------
   FIELD ERRORS
   ---------------------------------------------------------- */
.demo-error {
    display: block;
    font-size: 12px;
    color: var(--error);
    line-height: 1.4;
}

/* Honeypot field — hidden from real users */
.demo-form input[name="honeypot"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ----------------------------------------------------------
   SUBMIT BUTTON — solid navy
   ---------------------------------------------------------- */
.demo-submit-wrap {
    margin-top: 12px;
}

.demo-submit {
    background: var(--mycelia-green);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 15px 28px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.demo-submit:hover {
    filter: brightness(1.15);
}

.demo-submit:active {
    transform: scale(0.99);
}

/* ============================================================
   RIGHT: INFO PANEL (navy)
   ============================================================ */
.demo-info-panel {
    flex: 0 0 var(--panel-width);
    background: var(--mycelia-grey);
    display: flex;
    align-items: center;
}

.demo-info-inner {
    padding: 64px 56px;
    box-sizing: border-box;
    height: 100%;
}

.demo-info-eyebrow {
    display: block;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mycelia-green);
    margin-bottom: 20px;
}

.demo-info-heading {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color:var(--mycelia-green);
    margin: 0 0 20px;
}

.demo-info-text {
    font-size: 15px;
    line-height: 1.65;
    color: #C7CCE6;
    margin: 0;
}

/* ----------------------------------------------------------
   RESPONSIVE — stack on small screens
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .demo-page {
        flex-direction: column;
    }

    .demo-info-panel {
        flex: 0 0 auto;
        order: -1;
    }

    .demo-info-inner {
        padding: 40px 24px;
    }

    .demo-info-heading {
        font-size: 24px;
    }

    .demo-form-panel {
        padding: 32px 0;
    }

    .demo-card {
        margin: 0 20px;
    }

    .demo-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .demo-row .demo-field {
        margin-bottom: 20px;
    }
}