/* === Reset & Box Model === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Base Typography & Body === */
@font-face {
  font-family: 'Horas';
  src: url('../fonts/horas/Horas-Black.woff2') format('woff2'),
       url('../fonts/horas/Horas-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Horas';
  src: url('../fonts/horas/Horas-ExtraBold.woff2') format('woff2'),
       url('../fonts/horas/Horas-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Horas';
  src: url('../fonts/horas/Horas-Bold.woff2') format('woff2'),
       url('../fonts/horas/Horas-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Horas';
  src: url('../fonts/horas/Horas-SemiBold.woff2') format('woff2'),
       url('../fonts/horas/Horas-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Horas';
  src: url('../fonts/horas/Horas-Medium.woff2') format('woff2'),
       url('../fonts/horas/Horas-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Horas', sans-serif;
    line-height: 1.5;
    letter-spacing: 0px;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-color: #f5f5f5;
    color: var(--color-text-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    width: 100%;
    overflow: clip; 
    flex-grow: 1; 
    position: relative;
    z-index: 1;
}

/* === Typography === */
/* Base Tag Styles */
h1, h2, h3,
.text-h1, .text-h2, .text-h3 { font-weight: 900; line-height: 1; letter-spacing: 0px; }
h1, .text-h1 { font-size: 48px; }
h2, .text-h2 { font-size: 40px; }
h3, .text-h3 { font-size: 33px; }

h4, h5, h6,
.text-h4, .text-h5, .text-h6  { line-height: 1.313; letter-spacing: 0px; }
h4, .text-h4 { font-size: 28px; font-weight: 900; }
h5, .text-h5 { font-size: 23px; font-weight: 700; }
h6, .text-h6 { font-size: 19px; font-weight: 700; }

.new-text-sm, .new-text-xs { line-height: 1; letter-spacing: 0px; }
.new-text-sm { font-size: 12.4px; font-weight: 500; }
.new-text-xs { font-size: 11.1px; font-weight: 500; }

/* @deprecated Use the styles above instead
 * These are being phased out as of 2025/11/19
 */
.heading-xl { font-size: 28px; font-weight: 500; }
.heading-xl-bold { font-size: 28px; font-weight: 700; }
.heading-lg { font-size: 25px; font-weight: 500; }
.heading-lg-bold { font-size: 25px; font-weight: 700; }
.heading-md { font-size: 22px; font-weight: 500; }
.heading-md-bold { font-size: 22px; font-weight: 700; }

.text-lg { font-size: 18px; font-weight: 500; }
.text-lg-bold { font-size: 18spx; font-weight: 700; }
.text-md { font-size: 16px; font-weight: 500; }
.text-md-bold { font-size: 16spx; font-weight: 700; }
.text-sm { font-size: 14px; font-weight: 500; }
.text-sm-bold { font-size: 14px; font-weight: 700; }
.text-xs { font-size: 12px; font-weight: 500; }
.text-xs-bold { font-size: 12px; font-weight: 700; }
.text-xxs { font-size: 11px; font-weight: 500; }
.text-xxs-bold { font-size: 11px; font-weight: 700; }
/* @deprecated End */

/* === Color === */
:root {
    /* Core Palette */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-blue-400: #2fc6ea;
    --color-blue-500: #20abcc;
    --color-blue-600: #1b92b0;
    --color-blue-700: #00728D;
    --color-blue-800: #044e5f;
    --color-navy-800: #031136;
    --color-navy-900: #030d28;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #f0f0f0;
    --color-gray-300: #cccccc;
    --color-gray-600: #ADADAD;
    --color-gray-700: #666666;
    --color-gray-800: #2e2e2e;
    --color-gray-900: #212121;

    /* Semantic */
    --color-brand-primary: var(--color-blue-700);
    --color-brand-secondary: var(--color-navy-800);
    --color-brand-error: #DD5C60;
    --color-brand-yellow: #FFCC8F;
    --color-brand-link: #0668CB;
    --color-brand-dark: #0D6276;

    --color-promo: #B13E00;
    --color-done: #67a428;
    --color-green: #6d9d62;
    --color-xmark: #b35656;
    --color-cancel: #95373a;

    --color-text-default: var(--color-gray-900);
    --color-text-gray: var(--color-gray-600);
    --color-text-white: var(--color-white);
    --color-text-primary: var(--color-brand-primary);
    --color-text-secondary: var(--color-brand-secondary);

    --color-bg-default: var(--color-gray-100);
    --color-bg-white: var(--color-white);
    --color-bg-black: var(--color-black);
    --color-bg-primary: var(--color-brand-primary);
    --color-bg-primary-light: var(--color-blue-500);
    --color-bg-secondary: var(--color-brand-secondary);
    --color-bg-dark: var(--color-brand-dark);

    --color-border-default: var(--color-gray-300);
    --color-border-primary: var(--color-brand-primary);
    --color-border-white: var(--color-white);
    --color-border-black: var(--color-black);

    /* Buttons */
    --color-btn-primary-bg: var(--color-brand-primary);
    --color-btn-primary-text: var(--color-text-white);
    --color-btn-primary-hover-bg: var(--color-blue-600);

    --color-btn-secondary-bg: var(--color-brand-secondary);
    --color-btn-secondary-text: var(--color-text-white);
    --color-btn-secondary-hover-bg: var(--color-navy-900);

    --color-btn-tertiary-bg: var(--color-white);
    --color-btn-tertiary-text: var(--color-black);
    --color-btn-tertiary-hover-bg: var(--color-gray-200);

    --color-btn-primary-outline-bg: var(--color-white);
    --color-btn-primary-outline-border: var(--color-brand-primary);
    --color-btn-primary-outline-text: var(--color-text-default);
    --color-btn-primary-outline-hover-bg: var(--color-gray-200);
}

/* === Lists === */
.list-disc {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
}

/* === Links === */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.link:hover {
    text-decoration: underline;
}

.link-primary {
    color: #19829b;
}

.link-primary:hover {
    color: #177289;
}

.link-default {
    color: var(--color-brand-link);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-align: left; /* Ensures text aligns like a link */
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.btn-link:hover {
    text-decoration: underline;
}

/* === Buttons === */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 100px;
    min-width: 95px;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
}

.btn-primary:hover {
    background-color: var(--color-btn-primary-hover-bg);
}

.btn-secondary {
    background-color: var(--color-btn-secondary-bg);
    color: var(--color-btn-secondary-text);
}

.btn-secondary:hover {
    background-color: var(--color-btn-secondary-hover-bg);
}

.btn-tertiary {
    background-color: var(--color-btn-tertiary-bg);
    color: var(--color-btn-tertiary-text);
}

.btn-tertiary:hover {
    background-color: var(--color-btn-tertiary-hover-bg);
}

.btn-primary-outline {
    background-color: var(--color-btn-primary-outline-bg);
    border: 2px solid var(--color-btn-primary-outline-border);
    color: var(--color-btn-primary-outline-text);
}

.btn-primary-outline:hover {
    background-color: var(--color-btn-primary-outline-hover-bg);
}

.btn-tertiary-outline {
    background-color: var(--color-btn-tertiary-bg);
    border: 2px solid var(--color-border-default);
    color: var(--color-btn-tertiary-text);
}

.btn-cancel {
    background-color: var(--color-cancel);
    color: var(--color-text-white);
}

.btn-group {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

/* === Inputs === */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border-default);
    border-radius: 100px;
    outline: none;
    transition: border-color 0.2s ease;
}

input::placeholder {
    color: var(--color-border-default);
}

input:focus {
    border-color: var(--color-bg-primary-light);
}

/* === Utility Classes === */
.bold { font-weight: 700; }
.muted { color: var(--color-text-gray); }

.invisible {
    visibility: hidden;
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === Messages === */
.message {
    padding: 10px;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.warning {
    background-color: #f7f8d7;
    color: #6c721c;
}

/* === Modals === */
.modal-overlay {
    position: fixed;
    display: none;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-overlay.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    padding: 30px;
    background-color: var(--color-bg-white);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.modal-content.modal-overflow-img {
    overflow-y: visible;
}

.policy-modal-content {
    height: 90vh;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--color-text-gray);
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-text-default);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Responsive Styles */
/* Mobile-only: 320px – 767px */
@media (max-width: 767px) {
}

/* Mobile and Tablet: 1365px below */
@media (max-width: 1365px) {
    .modal-content {
        width: calc(100% - 40px);
        margin: auto;
    }
}