﻿/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif !important;
    background-color: #022937;
    color: #ffffff;

    padding-top: 100px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "DM Sans", sans-serif !important;
}

h1 {
    font-size: 84px;
    font-weight: 400;
    line-height: 96px;
    letter-spacing: -6%;
    color: #ffffff;
}

h2 {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 54px;
    line-height: 60px;
    letter-spacing: -4%;
    color: #ffffff;
    margin-bottom: 24px;
}

p, .p-style {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.5px;
    color: #FFFFFFCC;
    display: block;
    margin: 0;
}


.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    padding: 16px 8px;
    background-color: #022937;
    border-bottom: 1px solid #0000001A;
    z-index: 1000;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.3s ease;
}

.top-nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.link-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

a.top-nav-link {
    color: #ffffff;
    text-decoration: none;
    background-color: #FFFFFF0D;
    height: 35px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid #FFFFFF05;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
}

.button, a.button {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.5px;
    color: #022937;
    background-color: #E8F9EF;
    height: 35px;
    padding: 0 24px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.button:hover, a.button:hover {
    background-color: #d0e8d8;
    text-decoration: none;
}

.button.button-primary, a.button.button-primary {
    background-color: #EE522C;
    color: #ffffff;
}

.button.button-primary:hover, a.button.button-primary:hover {
    background-color: #d9461f;
}

.button-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.button.button-primary .button-icon {
    filter: brightness(0) invert(1);
}


.title-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 416px;
    width: 100%;
    background-image: url('../_assets/carrier-tools-bg-bottom-left.png'), url('../_assets/carrier-tools-bg-top-right.png');
    background-position: bottom left, top right;
    background-repeat: no-repeat;
    background-size: auto;
}

.tool-links-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 264px;
    padding: 24px;
    border-radius: 4px;
    background-color: #D9D9D91A;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s;
}

.tool-card:hover {
    background-color: #D9D9D92A; /* Subtle opacity increase for hover feedback */
}

.tool-arrow-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
}

.tool-title {
    height: 72px;
    font-weight: 400;
    font-size: 26px;
    line-height: 36px;
    letter-spacing: -2%;
    display: flex;
    align-items: flex-end;
}

.tool-description {
    opacity: 80%;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.5%;
}

.footer-section {
    padding-top: 64px;
    gap: 80px;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #FFFFFFCC;
}

.footer-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 2rem;
}

.footer-row.footer-row-padded {
    padding-left: 64px;
    padding-right: 64px;
}

.footer-row > * {
    flex: 1;
}

.footer-row-logo {
    border-bottom: 0.5px solid #FFFFFF44;
    padding-top: 64px;
    padding-bottom: 64px;
    justify-content: flex-start !important;
    text-align: left;
    width: 100%;
}

.footer-row-logo img {
    width: 202px !important; /* Override globals; use sparingly */
    height: 58px !important;
    flex: none;
    object-fit: contain;
    align-self: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section h4 {
    font-size: 26px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -2%;
    color: #ffffff;
}

.footer-section h5 {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.5px;
    font-weight: 400;
    color: #ffffff;
}

.footer-row.footer-row-links {
    flex: none;
    width: auto;
    white-space: nowrap;
    gap: 0;
}

.footer-row.footer-row-links a:not(:last-child)::after {
    content: ' | ';
    margin: 0 8px;
    color: inherit;
}

.footer-row.footer-row-bottom {
    border-top: 0.5px solid #ffffff44;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.5px;
}

/* Tab bar styles */
.tab-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 480px;
    margin: 0 auto;
    gap: 8px;
}

.tab {
    width: 228.5px;
    height: 49px;
    padding: 12px 8px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.5px;
    color: #FFFFFFCC;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.tab:hover {
    color: #ffffff;
}

.tab.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Page content styles */
.page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    width: 100%;
    padding: 48px 64px;
    align-items: start;
    padding-top: 120px;
    padding-bottom: 280px;
    background-image: url('../_assets/carrier-tools-bg-bottom-left.png');
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: auto;
}

.page-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 120px 64px 280px;
}

.content-centered {
    max-width: 650px;
    width: 100%;
}

.content-left {
    max-width: 550px;
}

/* Form styles */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-label {
    color: #E8F9EF;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.5px;
    opacity: 0.8;
}

.form-input,
.form-textarea {
    background-color: #213047;
    border-radius: 4px;
    border: 1px solid #FFFFFF26;
    height: 56px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #E8F9EF;
}

.form-textarea {
    padding: 16px;
    resize: vertical;
    height: 160px;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 12px;
}

.form-error {
    color: #EE522C;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 4px;
}

.form-message {
    color: #E8F9EF;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    opacity: 0.8;
}

