﻿:root {
    --accent-color: #0294F1;
    --accent-color-transparent: rgba(2, 148, 241, 0.15);
    --logo-font: 'LogoFont', sans-serif;
    --headline-font: 'HeadlineFont';
    --maintext-font: 'MainText';
    --cleantext-font: 'CleanText';
    --btn-padding-y: 0.25rem; /* vertical padding */
    --btn-padding-x: 0.75rem; /* horizontal padding */
    --btn-font-size: 18px; /* font-size for nav buttons */

    --heading-font-size: 4rem; /* font-size for headings */
    --subheading-font-size: 2rem; /* font-size for subheadings */
    --subsubheading-font-size: 1.5rem; /* font-size for subheadings */
    --maintext-font-size: 1rem; /* font-size for maintext */
    --headline-colour: #2e2e2e;
    --navbar-height-px: 60px;
    --navbar-height-pct: 6%;
    --footer-height-px: 40px;
    --footer-height-pct: 4%;
}

@font-face {
    font-family: 'LogoFont';
    src: url('/fonts/SignwoodItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* improves loading behavior apparently*/
}

@font-face {
    font-family: 'HeadlineFont';
    src: url('/fonts/Sagewold-ZpwvJ.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MainText';
    src: url('/fonts/Rijusans-gwAvR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CleanText';
    src: url('/fonts/segoeuithis.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    button:hover {
        background-color: var(--accent-color);
        color: white;
    }

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.logo { /* Heading Font Details */
    font-family: var(--logo-font);
    line-height: 1;
    color: var(--headline-colour);
}

.heading { /* Heading Font Details */
    font-family: var(--maintext-font);
    font-size: var(--heading-font-size);
    line-height: 1;
    color: var(--headline-colour);
}

.subheading { /* Subheading Font Details */
    font-family: var(--maintext-font);
    font-size: var(--subheading-font-size);
    line-height: 1;
    color: var(--headline-colour);
}

.subsubheading { /* Subheading Font Details */
    font-family: var(--maintext-font);
    font-size: var(--subsubheading-font-size);
    line-height: 1;
    color: var(--headline-colour);
}

.mainText { /* Main text Font Details */
    font-family: var(--maintext-font);
    font-size: var(--maintext-font-size);
    line-height: 1.6;
    color: dimgray;
}

.nav-item .nav-link {
    font-family: var(--maintext-font);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--btn-font-size);
    line-height: 1; /* controls text vertical centering */
    min-width: 4rem; /* fixed width */
    text-align: center; /* center label if min-width used */
    transition: color 0.2s ease, font-size 0.05s ease;
    border-radius: 0.25rem; /* soften the corners */
    color: dimgray;
}

    /* On hover, fill with accent colour and invert text */
    .nav-item .nav-link:hover {
        color: black !important;
        text-decoration: none;
        font-size: calc(var(--btn-font-size) * 1.05); /* 10% larger */
        border-radius: 0.25rem; /* soften the corners */
    }

.navbar-brand { /* Logo */
    font-family: var(--logo-font);
    font-size: 2.25rem;
    padding: 0rem 2.2rem 0rem 0rem;
}


/* LOGIN AND REGISTER BUTTON STUFF = common transition on login and register buttons */
.nav-item .auth-link-register,
.nav-item .auth-link-login {
    transition: font-size 0.05s ease, color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

/* Register button static styling */
.nav-item .auth-link-register {
    text-decoration: none;
    font-family: var(--maintext-font);
    padding: 0.2rem 1rem;
    font-size: var(--btn-font-size);
    line-height: 1;
    min-width: 4rem;
    text-align: center;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

/* Login button static styling */
.nav-item .auth-link-login {
    text-decoration: none;
    font-family: var(--maintext-font);
    padding: 0.2rem 1rem;
    font-size: var(--btn-font-size);
    line-height: 1;
    min-width: 4rem;
    text-align: center;
    border-radius: 0.25rem;
    background-color: var(--accent-color);
    color: white !important;
    transition: padding 0.2s ease;
}



/* Login hover */
.nav-item .auth-link-login:hover {
    padding: 0.2rem 1.3rem;
}


.pre-line {
    white-space: pre-line;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
}

.card-step {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1rem 1rem rgba(0,0,0,0.07);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

    .card-step i {
        color: var(--accent-color);
        margin-right: 2.5rem;
    }

.step-title {
    font-weight: 400;
    font-size: 1.65rem;
    color: #2e2e2e;
    margin-bottom: 0.25rem;
}

.step-text {
    color: #6c757d;
}


/* Layout: two send now/ later cards side by side */
.card-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

/* Hide the radio inputs themselves */
.card input[type="radio"] {
    display: none;
}

/* Entire card clickable */
.card {
    cursor: pointer;
}

/* Card appearance */
.card-content {
    position: relative;
    width: 140px;
    height: 30px;
    border: 2px solid #ccc;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
    overflow: hidden;
}

    .card-content:focus,
    .card-content:focus-visible,
    .card-content:active,
    .card-content:focus:active,
    .card-content:focus-visible:active {
        border: none;
        outline: none;
        box-shadow: none;
    }


/* Highlight when selected */
.card input[type="radio"]:checked + .card-content {
    border-color: var(--accent-color);
}

/* The text label inside each card */
.card-label {
    font-size: 1rem;
    color: #333;
}

/* Date input initially hidden */
.card-date {
    display: none;
    font-size: 1rem;
    padding: 0.3rem;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    background-color: #fafafa;
}

    /* Make sure date input doesn’t overflow */
    .card-date::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }


@keyframes pulseRed {
    0% {
        transform: scale(1);
        color: dimgray;
    }

    50% {
        transform: scale(1.05);
        color: #DB412D;
    }

    100% {
        transform: scale(1);
        color: dimgray;
    }
}

.animate-warning {
    animation: pulseRed 0.4s ease;
}

.pay-button {
    opacity: 0.75;
    cursor: not-allowed;
}

    /* when we add .enabled, it goes live */
    .pay-button.enabled {
        opacity: 1;
        cursor: pointer;
    }

.OTP-button {
    background-color: var(--accent-color);
    color: white;
}

    .OTP-button:hover {
        background-color: var(--accent-color);
        color: white;
        transform: scale(1.05);
    }

.PWC-button {
    background-color: #FFB343;
    color: black;
}

    .PWC-button:hover {
        background-color: #FFB343;
        color: black;
        transform: scale(1.05);
    }

.OTP-button,
.PWC-button {
    border: none;
    outline: none;
    box-shadow: none;
}

    .OTP-button:focus,
    .OTP-button:focus-visible,
    .OTP-button:active,
    .OTP-button:focus:active,
    .OTP-button:focus-visible:active,
    .PWC-button:focus,
    .PWC-button:focus-visible,
    .PWC-button:active,
    .PWC-button:focus:active,
    .PWC-button:focus-visible:active {
        border: none;
        outline: none;
        box-shadow: none;
    }



.credits-box {
    font-family: 'MainText';
    padding: 0.2rem 1rem;
    border: 1px solid;
    font-size: var(--btn-font-size);
    border-radius: 0.375rem;
}

.navbar-shadow {
    box-shadow: 0 4px 4px var(--accent-color-transparent);
}

.loginButton {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: border-radius 0.35s ease;
    width: 100%;
}

    .loginButton:hover {
        background-color: var(--accent-color);
        border-radius: 0.375rem;
        cursor: pointer;
    }


.generalButton {
    background-color: var(--accent-color);
    font-family: var(--maintext-font) !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 1rem;
    transition: border-radius 0.35s ease;
    text-decoration: none;
}

    .generalButton:hover {
        background-color: var(--accent-color);
        border-radius: 0.375rem;
        cursor: pointer;
        text-decoration: none;
        color: white;
    }

.nav-item-identity .nav-link-identity {
    font-family: var(--maintext-font);
    padding: 0px 0px;
    font-size: var(--btn-font-size);
    line-height: 1.2; /* controls text vertical centering */
    min-width: 4rem; /* fixed width */
    text-align: center; /* center label if min-width used */
    transition: color 0.2s ease, font-size 0.05s ease;
    border-radius: 0.25rem; /* soften the corners */
    color: dimgray !important;
    text-decoration: none;
}

    /* On hover, fill with accent colour and invert text */
    .nav-item-identity .nav-link-identity:hover {
        color: black !important;
        text-decoration: none;
        font-size: calc(var(--btn-font-size) * 1.05); /* 10% larger */
        border-radius: 0.25rem; /* soften the corners */
    }


@media screen and (max-width: 700px) {

    /* LEFT‐side (Profile + Register) */
    .navbar-collapse.collapse.show .nav-item-identity.profile .nav-link,
    .navbar-collapse.collapse.show .auth-link-register {
        position: absolute;
        bottom: 1rem;
        left: 1.5rem;
        text-align: center;
        margin: 0;
        display: inline-block;
        width: auto; /* don’t stretch full‑width */
    }

    /* RIGHT‐side (Logout + Login) */
    .navbar-collapse.collapse.show .nav-item-identity.logout .nav-link,
    .navbar-collapse.collapse.show .auth-link-login {
        position: absolute;
        bottom: 1rem;
        right: 1.5rem;
        text-align: center;
        margin: 0;
        display: inline-block;
        width: auto;      /* don’t stretch full‑width */
    }

    /* Shared link styling inside the open menu */
    .navbar-collapse.collapse.show .nav-item-identity .nav-link,
    .navbar-collapse.collapse.show .auth-link-register,
    .navbar-collapse.collapse.show .auth-link-login {
        padding: 0;
        font-size: 1rem;
        line-height: 1.5rem;
    }


    /* Screen‑reader only helper */
    .sr-only {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }

    /* Navbar wrapper */
    .navbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
        padding-left: 1rem;
    }

    /* Collapsible menu */
    .navbar-collapse {
        display: none !important;
        position: relative;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }
    .navbar-collapse.collapse.show {
        display: block !important;
        background-color: #fff;
        padding: 1rem 0 3rem;
        max-height: 500px;
        width: 100%;
    }

    /* Nav links inside collapse */
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .navbar-nav .nav-item {
        margin: 0;
    }
    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
        font-family: var(--maintext-font);
        font-size: var(--btn-font-size);
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Toggler button */
    .navbar-toggler {
        display: block !important;
        margin-left: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        outline: none;
    }
    .navbar-toggler:focus,
    .navbar-toggler:active {
        box-shadow: none;
        outline: none;
        border: none;
    }
    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .navbar-collapse.show + .navbar-toggler {
        background-color: var(--accent-colour);
    }
    .navbar-collapse.show + .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Credits box */
    .credits-box {
        position: absolute;
        left: 1rem;
        top: 10%;
        transform: translateY(0%);
        white-space: nowrap;
        z-index: 1000;
    }
    .navbar-collapse .credits-box {
        margin: 0;
    }
    .navbar-collapse .nav-item-credits {
        display: none !important;
    }
    .navbar-collapse.show + .navbar-toggler,
    .credits-box {
        z-index: 1001;
    }

    /* Fallback identity links (desktop/off‑canvas) */
    .nav-item-identity {
        position: relative;
        width: 100%;
    }
    .nav-item-identity .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1.5rem;
        text-align: center;
        font-size: 1rem;
        line-height: 1.5rem;
        background: transparent;
        color: inherit;
        text-decoration: none;
        z-index: 1;
    }

    /* Show/hide helpers */
    .d-mobile {
        display: inline;
    }
    .d-desktop {
        display: none;
    }

    .navbar-collapse .nav-item-identity:not(.profile):not(.logout) {
        position: static;
        text-align: center;
    }
    .navbar-collapse .nav-item-identity:not(.profile):not(.logout) .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}












/* DESKTOP */
@media screen and (min-width: 701px) {
    .navbar-collapse {
        display: flex !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}


