header {
    background-color: var(--deep-space-blue);
    border-bottom: 1px solid var(--silver-glow);
}

.amber-highlight {
    color: var(--royal-purple)
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amber-padding {
    font-size: 1.5rem !important;
    background-color: var(--amber-hover);
    width: fit-content !important;
    padding: 0 .5rem;
    margin-bottom: .5rem;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: .5px;
    font-family: 'Oswald';
    text-transform: uppercase;
}

.contact-photo-cta {
    position: relative;
    align-items: center;
    max-width: 600px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 800px;
    display: block;
}

.contact-photo-cta img {
    width: 100%;
    object-fit: cover;
    max-width: 600px;
    display: block;
    height: 800px;
    background: linear-gradient(180deg, var(--sky-aqua), #cfd8e3);
}

.contact-quote {
    margin-top: -2rem;
    padding: 0 1rem;
    color: var(--deep-space-blue);
    text-align: center;
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.8;
    z-index: 1;
}


.contact-submit {
    width: 100%;
    justify-self: center;
    position: relative;
}

.form-title {
    display: flex;
    width: 100%;
    grid-row: 1;
    grid-column: 2;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--deep-space-blue);
    align-self: end;
    justify-self: center;
    justify-content: center;
    gap: 1rem;
}

.form-title img {
    width: 3.5rem;
    height: auto;
}

.first-name-group {
    grid-row: 1;
    grid-column: 1;
}

.last-name-group {
    grid-row: 1;
    grid-column: 2;
}

.email-address-group {
    grid-row: 2;
    grid-column: 1;
}

.phone-number-group {
    grid-row: 2;
    grid-column: 2;
}

.preferred-method-group {
    grid-row: 3;
    grid-column: 1;
}

.category-group {
    grid-row: 4;
    grid-column: 1;
}

.sub-category-group {
    grid-row: 5;
    grid-column: 1;
}

.message-group {
    grid-row: 3 / span 3;
    grid-column: 2;
}

.contact-preference {
    font-family: "Lato", sans-serif;
    color: var(--deep-space-blue);
    display: flex;
}

.contact-preference p {
    padding: 0;
    margin: 0;
    font-size: 0.925rem;
    font-weight: bold;
}

.contact-preference-options {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#phoneNumber {
    width: 100%;
    font-size: 0.9rem;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid;
    border-color: var(--deep-space-blue);
    border-radius: 0;
    box-sizing: border-box;
}

#form-message {
    grid-row: 6;
    grid-column: 2;
    font-size: 0.9rem;
    padding: 32px 20px 20px;
    text-align: center;
    border-radius: 4px;
    color: var(--mist-blue);
}

#form-message.form-success {
    color: var(--mist-blue);
}

#form-message.form-error {
    color: #d9534f;
}

#contact .contact-grid {
    background: radial-gradient(circle at top left, #e3f0ff, #f6f9fc), radial-gradient(circle at bottom left, #ffffff, #f1f4f8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05)
}

.info-note {
    font-size: 0.85rem;
    color: var(--steel-blue-hover);
    margin-top: 0.25rem;
}

.ian-dialogue p:last-of-type {
    margin-bottom: 0;
}

.info-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top left, #e3f0ff, #f6f9fc);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}


.info-box>* {
    position: relative;
    z-index: 1;
}

.info-box:hover::before,
.info-box.hover-active::before {
    opacity: 1;
}


.form-group label,
.contact-preference legend {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--rich-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--rich-black);
    background: var(--cloud-grey);
    border: 1px solid var(--steel-silver);
    border-radius: 6px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.required-text {
    color: var(--amber);
    font-weight: 700;
    font-size: 0.85rem;
}

.contact-preference {
    border: none;
    display: flex;
    gap: 2rem;
    padding: 0;
}

.contact-preference label {
    color: var(--rich-black);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

button[type="submit"] {
    background-color: var(--amber-hover);
    color: var(--rich-black);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: .6em 1.2em;
    border: none;
    letter-spacing: -.25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--amber-lighter);
}

#form-message {
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--positive-green);
}


@media screen and (min-width: 769px) {

    main h2 {
        margin-top: 0;
    }

    #hero .hero-subtitle {
        font-family: "Oswald", sans-serif;
        font-weight: 600;
        font-size: 1.125rem;
        letter-spacing: 0.25px;
        text-transform: uppercase;
        padding: 20px 0 0;
        margin: 0 0 .5rem;
        color: var(--slate-grey);
    }

    .hero-wrapper {
        max-width: 1400px;
        width: 100%;
        padding: 68px 60px 3rem;
        display: grid;
        background-color: var(--service-card-white);
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        margin-left: auto;
        margin-right: auto;
        justify-items: center;
    }

    #hero {
        background: var(--cloud-grey);

    }

    #hero .wrapper {
        justify-content: center;
        width: 100%;
        margin: auto;
        padding: 0 0 3rem;
    }

    .contact-photo-cta {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-desktop-wrapper {
        max-width: 1400px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));

        justify-items: center;
    }

    #contact-info-section {
        background: var(--cloud-grey);
    }

    #contact-info-section a {
        text-transform: lowercase;
    }

    h1 {
        line-height: 1.15;
        margin: 0 0 1.5rem;
    }

    #hero-text p {
        font-size: 1.125rem;
        width: 100%;
        line-height: 1.5;
    }

    #hero-text {
        width: 100%;
        max-width: 800px;
        padding: 0 0 2rem;
        margin: 0;
    }
    
    #contact-info-section .wrapper {
        max-width: 1400px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }

    #contact-info-section .wrapper {
        padding: 3rem 60px 6rem;
        background-color: var(--service-card-white);
    }

    form {
        max-width: 600px;
        margin: 20px 0 0 0;
        background: var(--service-card-white);
    }

    #contact-info-section h2 {
        margin-bottom: 0;
    }

    .contact-submit {
        display: flex;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .info-box-wrapper {
        width: 100%;
        max-width: 480px;
        flex-direction: column;
        justify-content: flex-start;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1rem;
    }


    .info-box {
        background: linear-gradient(to bottom right, #fdfdfd, #e6ecf3);
        padding: 1.5rem;
        border-radius: 1rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
        border-left: 6px solid var(--amber);
        transition: all 0.4s ease;
        max-height: fit-content;
    }

    .info-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-left: 6px solid var(--amber-dark);
    }


    #contact-info-section .badge-static {
        width: fit-content;
        margin-top: .25rem;
        padding: .25rem 1rem;
        background: var(--amber);
        color: var(--rich-black);
    }

    .info-box h3 {
        margin: 0 0 0.5rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--deep-space-blue);
    }

    .info-box p,
    .info-box a {
        font-size: 1rem;
        text-decoration: none;
    }

    .info-box p:first-of-type {
        margin: 0;
    }

    .info-box a {
        color: var(--amber-dark);
    }

    .info-box a:hover {
        color: var(--amber-dark-hover);
        text-decoration: underline;
    }

    .info-note {
        margin-top: .5rem
    }

    .ian-bubble {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    p {
        line-height: 1.8;
        margin-top: .75rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px),
screen and (max-width: 1200px) and (orientation: landscape) {

    main {
        background-color: var(--service-card-white);
    }

    #hero {
        padding: 0 20px 3rem;
    }

    #hero .hero-subtitle {
        font-family: "Oswald", sans-serif;
        font-size: 1.125rem;
        font-weight: 600;
        text-transform: uppercase;
        padding: 20px 0 0;
        margin: 1rem 0 .25rem;
        color: var(--slate-grey);
        letter-spacing: .25px;
    }

    h1 {
        line-height: 1.1;
        padding: 0;
        margin: 0 0 1rem;
    }

    #hero-text p {
        font-size: clamp(1rem, 1rem + 0.5vw, 1.06375rem);
        line-height: 1.8;
    }

    p {
        margin-top: .5rem;
        margin-bottom: .75rem;
    }

    .badge-static {
        font-size: 1.25rem;
        padding: .25rem 1rem;
        text-align: center;
        background: var(--amber);
        color: var(--rich-black)
    }

    #form-message {
        grid-row: 7;
        grid-column: 1;
        margin: 40px 0 0;
    }

    #contact-info-section h2 {
        font-family: "Lato", sans-serif;
        font-weight: 700;
        margin-bottom: 0;
        margin-top: 0;
        text-align: center;
        padding-bottom: 0rem;
    }

    #contact-info-section {
        padding: 0 20px 6rem;
    }

    #contact #contact-form-title {
        font-size: 2.625rem;
        padding: 0 0 1.25rem;
    }

    .no-spam {
        margin: 0;
        text-align: center;
    }

    .mobile-center-amber {
        margin: 2rem -20px 2rem -20px;
        text-align: center;
        width: calc(100% + 40px) !important;
    }

    .mobile-center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .contact-photo-cta {
        margin: 2rem auto;
        max-width: 400px;
        width: 100%;
        height: 100%;
        max-height: 600px;
        aspect-ratio: 3 /4;
    }

    .contact-photo-cta img {
        max-width: 400px;
        width: 100%;
        height: 100%;
        max-height: 600px;
        aspect-ratio: 3 /4;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .contact-quote {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-top: -1rem;
        line-height: 1.5;
    }

    .category-group,
    .email-address-group,
    .first-name-group,
    .last-name-group,
    .message-group,
    .phone-number-group,
    .preferred-method-group,
    .sub-category-group {
        grid-column: unset;
        grid-row: unset;
    }

    .info-box-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0;
    }

    .info-box {
        position: relative;
        background: linear-gradient(to bottom right, #fdfdfd, #e6ecf3);
        padding: 0 1rem;
        border-left: 4px solid var(--amber);
        border-radius: 0.75rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
        transition: all 0.4s ease;
    }

    .info-box:hover,
    .info-box.hover-active {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        border-left: 4px solid var(--amber-dark)
    }

    .info-box h3 {
        margin-bottom: 0.25rem;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--deep-space-blue);
    }

    .info-box p,
    .info-box a {
        font-size: 0.95rem;
        color: var(--deep-space-blue);
        word-break: break-word;
        line-height: 1.5;
    }

    .info-box a {
        text-decoration: underline;
        font-weight: 600;
        text-transform: lowercase;
        color: var(--amber-dark);
    }

    .info-box a:hover {
        color: var(--amber-dark-hover);
    }

    hr {
        border: none;
        height: 1px;
        background-color: var(--muted-charcoal);
    }

    .ian-bubble {
        margin-top: 3rem;
        margin-bottom: 0;
        padding-bottom: 3rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1200px) and (orientation: portrait) {


    #contact h2 {
        text-align: center;
    }

    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-wrapper hr {
        grid-row: 3;
        grid-column: 1;
        margin: 40px auto 0;
        border: none;
        height: 2px;
        background-color: var(--deep-space-blue);
    }

    .contact-grid {
        grid-row: 5;
        grid-column: 1;
        width: 75%;
        margin: 1rem auto;
    }

    #contact .form-title {
        grid-row: 4;
        grid-column: 1;
        text-align: center;
        margin: 2rem 0 .5rem;
    }

    .contact-submit {
        grid-row: 6;
        grid-column: 1;
    }

    #form-message {
        grid-row: 7;
        grid-column: 1;
    }

    .contact-below-grid {
        text-align: center;
        grid-row: 8;
        grid-column: 1;
    }

}

@media screen and (min-width: 2060px) {

    .contact-wrapper {
        width: 80%;
    }

}