/* ========================================
   BASE STYLES & CSS VARIABLES
   ======================================== */
:root {
    --color-royal-blue: #01346b;
    --color-sky-blue: #1a73e8;
    --color-light-blue: #f5faff;
    --color-very-dark-blue: #012144;
    --color-dark-sky-blue: #0250a5;
    --color-selective-yellow: #d3a76c;
    --color-latte: #ceb395;
    --color-snow-gray: #f7f7f7;
    --color-text-gray: #4e4e4e;
    --spacing: 26px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Barlow", sans-serif;
    color: var(--color-very-dark-blue);
    font-size: 17px;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, .h1, .h2 {
    font-family: "Bebas Neue", sans-serif;
}

h1, h2, h3, h4, h5, p, .h1, .h2 {
    margin-top: 0;
    margin-bottom: var(--spacing);
}

p {
    line-height: 1.5;
}

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease-out 0s;
}

a:hover {
    color: var(--color-sky-blue);
}

footer a:hover {
    color: var(--color-selective-yellow);
}

.container {
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing);
    padding-right: var(--spacing);
}

.cta {
    display: inline-block;
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    color: var(--color-light-blue);
    background-color: var(--color-selective-yellow);
    border: 3px solid var(--color-selective-yellow);
    padding: 19px 36px;
    transition: all 0.3s ease-out 0s;
    cursor: pointer;
}

.cta:hover {
    background-color: transparent;
    color: var(--color-selective-yellow);
}

/* ========================================
   HEADER
   ======================================== */
header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: var(--spacing) 0;
    background: none;
    z-index: 998;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 2);
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease-out 0s;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing);
}

.phone-container {
    color: var(--color-light-blue);
    text-align: center;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-container span {
    display: block;
}

.phone-container a:hover {
    color: var(--color-selective-yellow);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero,
.hero:before {
    background: var(--color-royal-blue);
}

.hero:before {
    min-height: auto;
    height: 100%;
}

.hero {
    padding: 0;
    color: var(--color-light-blue);
}

.hero .container {
    position: relative;
}

.main-content {
    margin: auto;
    text-align: center;
    width: 600px;
    max-width: 100%;
    padding-top: 155px;
    padding-bottom: 115px;
}

h1 {
    font-size: 75px;
    line-height: 80px;
    margin-top: calc(var(--spacing) / 1.25);
}

h2 {
    font-size: 59px;
    margin-bottom: 0;
    line-height: 1.1;
    text-align: center;
}

.main-content p {
    font-size: 20px;
}

.main-content p.pre-title {
    font-style: italic;
}

.main-content .cta-container {
    margin-top: calc(var(--spacing) * 1.5);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: 75px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* ========================================
   AS SEEN IN
   ======================================== */
.seen-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.as-seen img {
    display: block;
    max-height: 40px;
}

.as-seen svg {
    height: 30px;
    width: auto;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.testimonial {
    flex: 0 0 calc(50% - 12px);
}

.ts {
    padding: 24px;
    border: 1px solid #e8e9eb;
    min-height: 197px;
    background-color: #FFF;
    height: 100%;
}

.ts-body {
    height: 100%;
}

.ts-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ts-stars img {
    height: 20px;
}

.ts-comment {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 16px;
    height: calc(100% - 28px);
}

.ts-name {
    color: #9ea9a7;
    margin-top: 16px;
    font-size: 15px;
}

.ts-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.after-ts {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 50px;
    text-align: center;
    font-size: 20px;
}

/* ========================================
   FORM SECTION
   ======================================== */
.form {
    background: var(--color-royal-blue);
}

.form h2 {
    color: var(--color-light-blue);
}

.form-con {
    background-color: #FFF;
    width: 550px;
    max-width: 100%;
    padding: 36px;
    margin: 0 auto;
}

.form-con-heading {
    text-align: center;
}

.form-con h3 {
    font-size: 1.75em;
    margin-bottom: 5px;
}

.form-con-heading p {
    font-size: 14px;
}

form {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
}

form .row {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.iti.iti--allow-dropdown.iti--show-flags {
    width: 100%;
}

input, select, textarea {
    position: relative;
    width: 100%;
    background-color: var(--color-snow-gray);
    border: 0;
    padding: 15px 20px;
    outline: 0!important;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
}

select::-ms-expand {
    display: none;
}

.select-row:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 12px;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-image: url(../img/chevron-down.svg);
    transition: transform .2s ease;
}

textarea {
    height: 80px;
}

.tymsg, .error {
    width: 100%;
    color: red;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.tymsg {
    color: green;
}

form button.cta {
    width: 100%;
    font-size: 16px;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: unset;
    color: var(--color-text-gray);
    font-size: 14px;
}

.below-form {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    text-align: center;
    color: var(--color-light-blue);
    font-size: 22px;
    margin-top: 35px;
}

.below-form span {
    display: block;
}

.below-form a:hover {
    color: var(--color-selective-yellow);
}

body > section:last-of-type {
    padding-bottom: 50px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding-top: 50px;
    padding-bottom: var(--spacing);
    background: var(--color-royal-blue);
    text-align: center;
    font-size: 14px;
    color: var(--color-light-blue);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) / 2);
}

footer .logo img {
    height: 50px;
}

footer p {
    margin-bottom: 0;
}

footer ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing);
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 1200px) {
    header {
        position: static;
        background: var(--color-royal-blue);
    }

    header .container {
        justify-content: space-between;
    }

    .main-content {
        padding-top: 60px;
    }
}

@media (max-width: 900px) {
    .seen-features {
        flex-wrap: wrap;
        width: 475px;
        max-width: 100%;
    }
    .seen-features a {
        display: block;
        flex: 0 0 213px;
        text-align: center;
    }
    .seen-features img {
        margin: 0 auto;
    }
    .seen-features a:nth-child(1),
    .seen-features a:nth-child(2) {
        margin-bottom: var(--spacing);
    }
    .testimonials {
        width: 100%;
        margin: 0;
    }
    .testimonial {
        flex: 0 0 100%;
    }
    .ts {
        min-height: auto;
    }
    .ts-text {
        -webkit-line-clamp: 4;
    }
    .after-ts {
        font-size: 18px;
    }
    .below-form {
        font-size: 20px;
    }
}

@media (max-width: 800px) {
    h2 {
        font-size: 50px;
        line-height: 1.125;
    }
    .logo img {
        height: 45px;
    }
}

@media (max-width: 600px) {
    header .container {
        justify-content: center;
    }
    .header-right {
        display: none;
    }
    .hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    h1 {
        font-size: 50px;
        line-height: 55px;
    }
    h2 {
        font-size: 45px;
    }
    .main-content {
        padding-top: 30px;
        padding-bottom: 75px;
    }
    .main-content p {
        font-size: 16px;
    }
    .cta {
        width: auto;
    }
    .seen-features {
        justify-content: center;
        gap: 24px;
    }
    .seen-features a:nth-child(1), .seen-features a:nth-child(2) {
        margin-bottom: 0;
    }
    .seen-features a:nth-child(4) {
        margin-top: -10px;
    }
    .after-ts {
        font-size: 16px;
    }
    .form-con {
        padding: 24px;
    }
    .below-form {
        font-size: 18px;
    }
    footer ul {
        flex-direction: column;
        gap: calc(var(--spacing) / 2);
    }
    form .row {
        flex-direction: column;
    }
}
