
/* =========================================
   SCALEHOST CONTACT PAGE
   Blue: #0878ff
   Orange: #ff7100
========================================= */

:root {
    --blue: #0878ff;
    --blue-dark: #0560d1;
    --orange: #ff7100;

    --ink: #10243d;
    --muted: #64758a;

    --line: #e3eaf2;
    --white: #ffffff;

    --radius: 15px;
}


/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);

    font-family: 'Inter', Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* MAIN CONTAINER */

.contact-page {
    width: min(100% - 40px, 950px);
    margin: 0 auto;
    padding: 70px 0 45px;
}


/* INTRODUCTION */

.contact-intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    border-radius: 30px;

    background: rgba(8, 120, 255, 0.08);

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--orange);
}

.contact-intro h1 {
    margin: 22px 0 14px;

    font-size: clamp(34px, 5vw, 49px);

    line-height: 1.15;
    letter-spacing: -1.9px;

    font-weight: 800;
}

.contact-intro h1 span {
    color: var(--blue);
}

.contact-intro > p {
    max-width: 630px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.9;
}

.intro-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 22px;

    padding: 11px 15px;

    border: 1px solid rgba(255, 113, 0, 0.2);

    border-radius: 9px;

    background: #fff8f2;

    color: #79502e;

    font-size: 11px;
    line-height: 1.6;
}

.highlight-icon {
    color: var(--orange);
    font-size: 17px;
}


/* FORM CONTAINER */

.contact-form-section {
    position: relative;

    padding: 38px;

    border: 1px solid var(--line);

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 15px 50px rgba(16, 36, 61, 0.07),
        0 3px 12px rgba(255, 113, 0, 0.04);

    overflow: hidden;
}

.contact-form-section::before {
    content: "";

    position: absolute;

    top: -100px;
    right: -100px;

    width: 230px;
    height: 230px;

    border-radius: 50%;

    background: rgba(255, 113, 0, 0.09);

    filter: blur(65px);

    pointer-events: none;
}


/* FORM HEADING */

.form-heading {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 32px;
}

.section-kicker {
    color: var(--orange);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.form-heading h2 {
    margin: 9px 0 7px;

    font-size: 27px;

    letter-spacing: -0.8px;
}

.form-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}

.form-icon {
    display: grid;
    place-items: center;

    width: 49px;
    height: 49px;

    flex-shrink: 0;

    border-radius: 14px;

    background: rgba(255, 113, 0, 0.11);

    color: var(--orange);

    font-size: 24px;
}


/* FORM SECTION TITLES */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 22px;

    color: var(--ink);

    font-size: 14px;
    font-weight: 800;
}

.number {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    border-radius: 8px;

    background: rgba(8, 120, 255, 0.09);

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
}


/* FORM GRID */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}


/* LABELS */

.form-group label {
    margin-bottom: 9px;

    color: #34485f;

    font-size: 11px;
    font-weight: 700;
}

.form-group label > span:not(.optional) {
    color: var(--orange);
}

.optional {
    color: #98a4b2;

    font-size: 10px;
    font-weight: 500;
}


/* INPUTS */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    min-height: 47px;

    padding: 12px 14px;

    border: 1px solid #dfe6ee;

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    color: var(--ink);

    font-size: 12px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0acb9;
}

.form-group select {
    cursor: pointer;
    appearance: auto;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b5c8dc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 3px rgba(255, 113, 0, 0.10);

    background: #fffdfb;
}

.form-group textarea {
    min-height: 125px;

    resize: vertical;

    line-height: 1.7;
}


/* DIVIDER */

.form-divider {
    height: 1px;

    margin: 30px 0;

    background: var(--line);
}


/* CONDITIONAL PROJECT DETAILS */

.conditional-grid {
    display: none;

    margin-top: 20px;
    padding: 20px;

    border: 1px solid rgba(255, 113, 0, 0.18);

    border-radius: 12px;

    background: #fffaf6;

    animation: formAppear 0.3s ease;
}

.conditional-grid.visible {
    display: grid;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* MESSAGE */

.message-group {
    margin-top: 20px;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;
}

#characterCount {
    margin-top: 6px;

    color: #98a4b2;

    font-size: 10px;
}


/* VALIDATION */

.field-error {
    min-height: 0;

    margin-top: 5px;

    color: #dc3545;

    font-size: 10px;
    line-height: 1.5;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
    border-color: #dc3545;

    background: #fffafa;
}

.form-group.invalid .field-error {
    min-height: 15px;
}


/* SUBMIT BUTTON */

.form-submit {
    margin-top: 28px;
}

.form-submit button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    width: 100%;

    min-height: 53px;

    padding: 14px 20px;

    border: none;

    border-radius: 10px;

    background: var(--blue);

    color: #ffffff;

    cursor: pointer;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 7px 20px rgba(8, 120, 255, 0.16);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.form-submit button:hover {
    background: var(--orange);

    box-shadow:
        0 9px 24px rgba(255, 113, 0, 0.22);

    transform: translateY(-2px);
}

.form-submit button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.submit-arrow {
    font-size: 19px;
}

#formMessage {
    margin: 13px 0 0;

    color: var(--muted);

    text-align: center;

    font-size: 10px;
    line-height: 1.7;
}

#formMessage.success {
    color: #16865d;
}

#formMessage.error {
    color: #dc3545;
}


/* BOTTOM NOTE */

.contact-bottom {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 25px;
}

.bottom-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--orange);
}

.contact-bottom p {
    margin: 0;

    color: #8291a3;

    font-size: 10px;
    line-height: 1.7;

    text-align: center;
}


/* TABLET */

@media (max-width: 700px) {

    .contact-page {
        padding-top: 50px;
    }

    .contact-form-section {
        padding: 28px;
    }

}


/* MOBILE */

@media (max-width: 520px) {

    .contact-page {
        width: calc(100% - 28px);

        padding: 38px 0 30px;
    }

    .contact-intro {
        margin-bottom: 30px;
    }

    .contact-intro h1 {
        font-size: 34px;
        letter-spacing: -1.3px;
    }

    .contact-intro > p {
        font-size: 12px;
    }

    .intro-highlight {
        font-size: 10px;
        text-align: left;
    }

    .contact-form-section {
        padding: 23px 17px;

        border-radius: 15px;
    }

    .form-heading h2 {
        font-size: 23px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .form-group input,
    .form-group select {
        min-height: 49px;
    }

    .conditional-grid.visible {
        grid-template-columns: 1fr;
    }

    .form-divider {
        margin: 25px 0;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;
    }

}
