/* =========================================================
   BLOODMOON ROLEPLAY
   CONTACT PAGE
   Design harmonisé avec Index, Guide, Places, News et Join
   ========================================================= */

.bm-contact-page {
    --contact-bg: #090c10;
    --contact-panel: #10151b;
    --contact-panel-soft: #15171e;

    --contact-red: #c43840;
    --contact-red-light: #e36a70;
    --contact-red-dark: #80212d;

    --contact-text: #eee6e4;
    --contact-muted: #aaa5a7;

    --contact-border: rgba(165, 76, 85, 0.35);

    background: var(--contact-bg);
    color: var(--contact-text);
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.bm-contact-main {
    width: min(1200px, calc(100% - 40px));
    min-height: 65vh;

    margin: 0 auto;
    padding: 45px 0 90px;
}


/* =========================================================
   HERO
   ========================================================= */

.bm-contact-hero {
    position: relative;
    overflow: hidden;

    padding: 55px 30px;
    margin-bottom: 35px;

    text-align: center;

    background:
        radial-gradient(
            ellipse at top center,
            rgba(140, 25, 40, 0.22),
            transparent 65%
        ),
        linear-gradient(
            180deg,
            #171218,
            #10151b
        );

    border: 1px solid var(--contact-border);
    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.18);
}


/* HERO EYEBROW */

.bm-contact-eyebrow {
    display: block;
    margin-bottom: 18px;

    color: var(--contact-red-light);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}


/* HERO TITLE */

.bm-contact-hero h1 {
    margin: 0 0 18px;

    color: #f6eee9;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 500;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.75),
        0 0 30px rgba(160, 30, 45, 0.22);
}


/* HERO DESCRIPTION */

.bm-contact-hero p {
    max-width: 680px;
    margin: 0 auto 25px;

    color: var(--contact-muted);

    font-size: 1rem;
    line-height: 1.8;
}


/* BACK BUTTON */

.bm-contact-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    color: var(--contact-text);

    background: rgba(130, 30, 42, 0.15);

    border: 1px solid var(--contact-border);
    border-radius: 5px;

    font-size: 0.9rem;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.bm-contact-back:hover {
    color: #ffffff;

    background: rgba(196, 56, 64, 0.28);
    border-color: var(--contact-red);

    text-decoration: none;
}


/* =========================================================
   TWO COLUMN LAYOUT
   ========================================================= */

.bm-contact-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.4fr);

    align-items: stretch;
    gap: 25px;
}


/* =========================================================
   INFORMATION PANEL
   ========================================================= */

.bm-contact-info {
    position: relative;
    overflow: hidden;

    padding: 40px 32px;

    background:
        linear-gradient(
            160deg,
            rgba(100, 25, 38, 0.20),
            #10151b 70%
        );

    border: 1px solid var(--contact-border);
    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);
}


/* INFORMATION LABEL */

.bm-contact-info-eyebrow {
    display: block;
    margin-bottom: 18px;

    color: var(--contact-red-light);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}


/* INFORMATION TITLE */

.bm-contact-info h2 {
    margin: 0 0 25px;

    color: var(--contact-text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 500;
    line-height: 1.35;
}


/* DECORATIVE DIVIDER */

.bm-contact-decoration {
    width: 95px;
    height: 1px;

    margin-bottom: 25px;

    background:
        linear-gradient(
            90deg,
            var(--contact-red),
            transparent
        );
}


/* INFORMATION TEXT */

.bm-contact-info p {
    position: relative;
    z-index: 1;

    color: var(--contact-muted);

    font-size: 0.98rem;
    line-height: 1.9;
}


/* DECORATIVE MOON */

.bm-contact-symbol {
    position: absolute;
    right: 10px;
    bottom: -35px;

    color: rgba(196, 56, 64, 0.09);

    font-size: 15rem;
    line-height: 1;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.bm-contact-form-panel {
    padding: 36px;

    background: var(--contact-panel);

    border: 1px solid var(--contact-border);
    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);
}


/* FORM HEADING */

.bm-contact-form-heading {
    margin-bottom: 30px;
}

.bm-contact-form-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: var(--contact-red-light);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.bm-contact-form-heading h2 {
    margin: 0 0 12px;

    color: var(--contact-text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.bm-contact-form-heading p {
    margin: 0;

    color: var(--contact-muted);

    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.bm-contact-field {
    margin-bottom: 24px;
}


/* LABELS */

.bm-contact-field label {
    display: block;
    margin-bottom: 10px;

    color: var(--contact-text);

    font-size: 0.86rem;
    font-weight: 600;
}


/* INPUTS AND TEXTAREA */

.bm-contact-field input,
.bm-contact-field textarea {
    display: block;
    width: 100%;

    padding: 14px 17px;

    color: var(--contact-text);
    background: #0b0e13;

    border: 1px solid rgba(165, 76, 85, 0.35);
    border-radius: 6px;

    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.bm-contact-field input {
    min-height: 52px;
}

.bm-contact-field textarea {
    min-height: 180px;
    resize: vertical;
}


/* PLACEHOLDERS */

.bm-contact-field input::placeholder,
.bm-contact-field textarea::placeholder {
    color: #898184;
}


/* FOCUS */

.bm-contact-field input:focus,
.bm-contact-field textarea:focus {
    background: #101117;

    border-color: var(--contact-red);

    box-shadow:
        0 0 0 3px rgba(196, 56, 64, 0.13);
}


/* =========================================================
   HCAPTCHA
   ========================================================= */

.bm-contact-captcha {
    margin: 25px 0;
}

.bm-contact-captcha p {
    margin-bottom: 15px;

    color: var(--contact-muted);

    font-size: 0.85rem;
    line-height: 1.6;
}

.bm-contact-captcha .h-captcha {
    max-width: 100%;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.bm-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 13px 30px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #a92b37,
            #80212d
        );

    border: 1px solid var(--contact-red);
    border-radius: 5px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.bm-contact-submit:hover {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #c43840,
            #a92b37
        );

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(196, 56, 64, 0.20);
}

.bm-contact-submit:focus-visible {
    outline: 2px solid var(--contact-red-light);
    outline-offset: 3px;
}

.bm-contact-submit:active {
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .bm-contact-layout {
        grid-template-columns: 1fr;
    }

    .bm-contact-info {
        padding: 30px;
    }

    .bm-contact-symbol {
        font-size: 10rem;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .bm-contact-main {
        width: min(100% - 24px, 1200px);
        padding: 25px 0 55px;
    }

    .bm-contact-hero {
        padding: 40px 22px;
    }

    .bm-contact-form-panel {
        padding: 25px 22px;
    }

}

@media (max-width: 480px) {

    .bm-contact-info {
        padding: 25px 22px;
    }

    .bm-contact-submit {
        width: 100%;
    }

    .bm-contact-field textarea {
        min-height: 150px;
    }

}