:root {
    --primary: #1a2b48;
    --accent: #c5a059;
    --accent-btn: #7a5000;
    --text: #333;
    --section-title: #01338b;
    --light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 1rem 45px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding: var(--scroll-padding, 2rem);
    scrollbar-color: var(--accent) var(--primary);
    scrollbar-width: thin;
    caret-color: var(--accent);
    caret-shape:block;
    accent-color: var(--primary);
}

body {
    color: var(--text);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--white);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 100;
    font-size: 1rem;
}

.toggle-box {
    background: var(--accent);
    padding: 1rem;
    border-radius: .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.switch {
    position: relative;
    width: 2.5rem;
    height: 1.25rem;
    margin-bottom: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    transition: .3s;
    border-radius: 1rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1rem;
    width: 1rem;
    left: 2px;
    bottom: 2px;
    background: var(--light);
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

input[type="text"] {
    width: 100%;
    padding: .75rem;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    box-sizing: border-box;
    font-size: 1rem;
}

input:disabled {
    background: #f8fafc;
    cursor: not-allowed;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent-btn);
    border: 1px solid var(--accent);
    border-radius: .5rem;
    z-index: 100;
    box-shadow: 0 .325rem 1rem rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: .75rem;
    cursor: pointer;
    color: var(--light);
}

.suggestion-item:not(:last-child) {
    border-bottom: 1px solid var(--primary);
}

.suggestion-item:hover {
    background: var(--accent);
    color: var(--light);
}

.price {
    color: var(--primary);
    margin: 0;
}

.details {
    font-size: .825rem;
    color: #64748b;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60% {
        content: '...';
    }
}

.small {
    font-size: .75rem;
    font-weight: 100;
}

.subinfo {
    color: #64748b;
    margin-left: .5rem;
}

.courier-title {
    font-size: 1rem;
    font-weight: 100;
    margin-bottom: .25rem;
}

.primary-navigation {
    background: rgba(26, 43, 72, 0.95);
    backdrop-filter: blur(.625rem);
    color: var(--white);
    padding: 0 5%;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 1.875rem rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
}

.logo-svg {
    width: 3.5rem;
    height: 3.5rem;
    fill: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .75rem 1rem;
    border-radius: 5px;
    letter-spacing: .5px;
}

.nav-links a:hover {
    color: var(--white);
    background: var(--accent);
    transition: color 0.3s;
}

footer {
    background: var(--primary);
    color: #d1d8e0;
    padding: 3.75rem 5% 1.875rem;
    text-align: center;
    font-size: 0.8rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: .625rem;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-agb {
    display: inline-flex;
    gap: .5rem;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 1rem;
}

.footer-agb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-agb a:hover {
    color: var(--accent);
}

.footer-social-grid {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-social-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #aaa;
}

.footer-social-btn:hover {
    border-color: var(--accent);
    background: rgba(197, 160, 89, 0.1);
}

.footer-social-btn:hover svg {
    fill: var(--accent);
}

.footer-bottom {
    margin-top: 3.125rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: #d3d3d3;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 72, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--accent);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.modal-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.modal-content a {
    color: var(--accent);
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}

.headinfo {
    list-style: none;
}

.headtel {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.track-btn {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    box-shadow: 0 .625rem 1.563rem rgba(0, 0, 0, 0.05);
}

.track-btn:hover {
    background: var(--accent);
}

/* Calculator Styles */
.calc-wrapper {
    background: var(--primary);
    color: var(--light);
    padding: 3.75rem 2.5rem;
    border-radius: 2.5rem;
    margin: 1% auto;
    box-shadow: var(--shadow);
    max-width: 600px;
    border: 2px solid var(--accent);
}

.calc-header {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.calc-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    position: relative;
}

.calc-group label {
    margin-bottom: .25rem;
    font-weight: 100;
    color: var(--light);
}

.calc-group select,
.calc-group input {
    padding: 1rem;
    border-radius: .625rem;
    border: 2px solid rgba(197, 160, 89, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.calc-group select:focus,
.calc-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.calc-group select option {
    background: var(--primary);
    color: white;
}

.result-box {
    margin-top: 2rem;
    text-align: center;
    padding-top: .25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box .price {
    color: var(--accent);
    display: inline-block;
    font-size: 4rem;
    font-weight: 700;
}

.warning-info {
    max-width: 75%;
    margin: 2rem auto;
    border-top: 1px solid var(--accent);
    color: var(--light);
    padding-top: .75rem;
    text-align: justify;
}

.warning-info strong {
    color: white;
    background-color: var(--accent-btn);
    padding: .25rem 1rem;
    margin: .5rem;
    text-transform: uppercase;
    border-radius: .5rem;
}

.warning-info strong::before {
    content: '*';
    padding-right: .15rem;
}

@media (max-width: 768px) {

    :root {
        --shadow: 0 1rem 45px rgba(0, 0, 0, 0.1);
    }

    html {
        scrollbar-width: none;
    }

    .nav-links {
        display: none;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-svg {
        width: 2rem;
        height: 2rem;
    }

    .primary-navigation {
        height: 3rem;
    }

    .headinfo {
        line-height: 1.25;
    }

    .headtel {
        font-size: .8rem;
    }

    .calc-wrapper {
        margin: .5rem .5rem 1rem .5rem;
        padding: 1.75rem 1rem;
    }

    .calc-header {
        font-size: 1.75rem;
        font-weight: 500;
    }

    .warning-info {
        max-width: 95%;
        margin: 1rem auto;
    }
}