/* === Reset & Box Model === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Base Typography & Body === */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    width: 100%;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem; /* = 14px */
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
.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; }

/* === Color === */
:root {
    /* Core Palette */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-blue-400: #2fc6ea;
    --color-blue-500: #20abcc;
    --color-blue-600: #1b92b0;
    --color-navy-800: #031136;
    --color-navy-900: #030d28;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #f0f0f0;
    --color-gray-300: #cccccc;
    --color-gray-700: #666666;
    --color-gray-800: #2e2e2e;
    --color-gray-900: #222222;

    /* Semantic */
    --color-brand-primary: var(--color-blue-500);
    --color-brand-secondary: var(--color-navy-800);
    --color-brand-error: #DD5C60;
    --color-brand-yellow: #FFCC8F;
    --color-brand-link: #0668CB;
    --color-brand-dark: #0D6276;

    --color-info: #da6424;
    --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-700);
    --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-blue-500);
    --color-bg-primary-light: var(--color-blue-400);
    --color-bg-secondary: var(--color-navy-800);
    --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;
}

a.link:hover {
    text-decoration: underline;
}

.link a:hover {
    text-decoration: underline;
}

.link-primary {
    color: #19829b;
}

.link-primary a:hover {
    color: #177289;
}

.link-default {
    color: var(--color-brand-link);
}

/* === Buttons === */
button {
    font-family: 'Raleway';
}

.btn {
    display: inline-block;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
    padding: 10px;
    border-radius: 100px;
    min-width: 95px;
    font-family: 'Raleway';
    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: 1px 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-cancel {
    background-color: var(--color-cancel);
    color: var(--color-text-white);
}

.btn-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* === Inputs === */
input, textarea, select {
    font-family: inherit;
    font-size: inherit; 
    font-weight: inherit;
    color: inherit;
}

input[type="text"] {
    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 === */
.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: 1000;
}

.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;
    }
}