/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
* {
    margin: 0;
    font-family: var(--font-main);
}

/* Body defaults */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: inherit;
    background-color: transparent;
    transition: background-color 9999s ease-in-out 0s;
}

input, textarea, select {
    background-clip: padding-box;
    background: transparent;
}

/* Form elements inherit font */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove list styles */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Buttons */
button {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 6px 20px;
    font-size: var(--font-size-base);
    font-weight: 500;
    background: white;
    color: black;
}

button.blue {
    background: var(--color-blue);
    color: white;
}

button.black {
    background: black;
    color: white;
}

button.capsule{
    border-radius: var(--radius-xl);
}


/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    font-size: inherit;
}

html {
    scroll-behavior: smooth;
}

button:focus,
input:focus {
    outline:none;
}

::-webkit-scrollbar{
	display: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input{
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: var(--font-size-xl);
    width: 100%;
    background-color: transparent;
    line-height: 1;
}

input::placeholder{
    color: var(--color-text-light);
}

main{
    width: 100%;
    min-height: 200px;
    padding-block: 47px;
    overflow: clip;
}

hr{
    border: 0.01rem solid var(--color-border);
}

.heading-text{
    width: 100%;
    background-color: var(--color-bg-alt);
    text-align: center;
    padding-block: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;

    a{
        color: var(--color-blue);
        padding-inline: 4px;
    }
}

.white-section{
   width: 100%;
   background: var(--color-bg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-light);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);

    a {
        text-decoration: none;
        transition: color 0.2s;
    }

    a:hover {
        color: var(--color-blue);
    }

    .separator {
        color: #999;
        margin: 0 2px;
    }

    .current {
        font-weight: 600;
        color: #000;
    }
}

#toast-container {
    position: fixed;
    top: calc(var(--space-xl) * 2);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.toast {
    background-color: #0f2848;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    width: 90vw;
    max-width: 400px;
    margin-bottom: var(--space-md);
    padding-block: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
    border-radius: var(--radius-xl);
    animation: fadeInOut 2.5s forwards;
    opacity: 0;
    
    span{
        font-size: var(--font-size-sm);
        font-weight: 400;
        flex-shrink: 0;
        white-space: nowrap;
        color: white;
    }
    svg{
        color: var(--color-blue);
        display: none;
    }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}


.pagination{
    width: 100%;
    margin-top: var(--space-xxl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);

    a{
        display: flex;
        line-height: normal;
    }
    a:hover{
        color: var(--color-blue);
    }

    span{
        font-size: var(--font-size-lg);
        line-height: normal;
        strong{
            padding-inline: var(--space-xs);
            font-weight: 400;
            opacity: 0.4;
        }
    }

    svg.disabled{
        cursor: default;
        opacity: 0.3;
    }
}

.thank-you-page{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--space-xl) * 2);
    gap: var(--space-md);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;

    .thank-you-page h1{
        font-size: var(--font-size-xxxl);
        font-weight: 600;
    }

    .thank-you-page p{
        font-size: var(--font-size-base);
        color: var(--color-text-secondary);
        line-height: 1.6;
    }

    .thank-you-actions{
        display: flex;
        align-items: center;
        gap: var(--space-lg);
        margin-top: var(--space-md);
    }

    a.button-link{
        color: var(--color-blue);
        cursor: pointer;
        font-size: var(--font-size-sm);
    }
    a.button-link:hover{
        text-decoration: underline;
    }
}
