/* =========================================================
   BRAGA HALF MARATHON 2027
   CONTACT FORM - IFRAME VERSION
   RUNNING PORTUGAL
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    background: transparent;

    color: #26384c;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   PAGE WRAPPER
========================================================= */

.contact-page {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    background: transparent;
}


/* =========================================================
   HIDE STANDALONE HEADER
   The parent contact.html already has its own heading
========================================================= */

.contact-header {
    display: none;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;
}


/* =========================================================
   ERROR BOX
========================================================= */

.contact-alert {
    margin: 0 0 20px;

    padding: 15px 17px;

    background: #fff3f1;

    border: 1px solid #e4b4ad;
    border-left: 4px solid #8b1d28;

    color: #7c302e;

    font-size: 13px;
    line-height: 1.5;
}

.contact-alert strong {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
}

.contact-alert ul {
    margin: 0;
    padding-left: 20px;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #26384c;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.35;
}


/* =========================================================
   REQUIRED
========================================================= */

.required {
    color: #8b1d28;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    margin: 0;

    border: 1px solid #d0d8de;
    border-radius: 5px;

    background: #ffffff;

    color: #26384c;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* =========================================================
   INPUT
========================================================= */

.form-group input {
    min-height: 46px;

    padding: 0 13px;
}


/* =========================================================
   SELECT
========================================================= */

.form-group select {
    min-height: 46px;

    padding: 0 12px;

    cursor: pointer;
}


/* =========================================================
   TEXTAREA
========================================================= */

.form-group textarea {
    min-height: 150px;

    padding: 12px 13px;

    resize: vertical;
}


/* =========================================================
   PLACEHOLDERS
========================================================= */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a4ab;

    opacity: 1;
}


/* =========================================================
   FOCUS
========================================================= */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #8b1d28;

    box-shadow:
        0 0 0 3px
        rgba(139,29,40,.08);
}


/* =========================================================
   HELP TEXT
========================================================= */

.field-help {
    margin:
        7px 2px 0;

    color: #7b878f;

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   MESSAGE COUNTER
========================================================= */

.message-counter {
    margin-top: 6px;

    text-align: right;

    color: #8a969d;

    font-size: 10px;
}


/* =========================================================
   SECURITY INFORMATION
========================================================= */

.contact-security {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin:
        4px 0 21px;

    padding:
        12px 14px;

    background: #f2f5f7;

    border-left: 3px solid #8b1d28;

    color: #68747c;

    font-size: 11px;
    line-height: 1.5;
}

.contact-security p {
    margin: 0;
}


/* =========================================================
   SECURITY ICON
========================================================= */

.security-icon {
    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    margin-top: 1px;

    border-radius: 50%;

    background: #ffffff;

    color: #8b1d28;

    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   SUBMIT AREA
========================================================= */

.form-submit {
    margin-top: 4px;

    text-align: left;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {
    min-width: 190px;
    min-height: 48px;

    padding:
        13px 25px;

    border: 0;
    border-radius: 3px;

    background: #8b1d28;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.contact-submit:hover {
    background: #26384c;

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px
        rgba(38,56,76,.16);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:focus {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(139,29,40,.18);
}

.contact-submit:disabled {
    opacity: .6;

    cursor: wait;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   HONEYPOT
   IMPORTANT - DO NOT REMOVE
========================================================= */

.contact-honeypot {
    position: absolute !important;

    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   RUNNING PORTUGAL NOTICE
   Hidden inside iframe because parent page already contains it
========================================================= */

.running-portugal-notice {
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group select {
        min-height: 45px;
    }

    .form-group textarea {
        min-height: 145px;
    }

    .contact-submit {
        width: 100%;

        min-height: 49px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media screen and (max-width: 420px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-security {
        padding:
            11px 12px;
    }

}