
:root {
    --background: #FFFAEF;
    --primary: #192335;
    --accent: #BCA384;
    --white: #FFFFFF;
    --black: #000000;

    --muted: #77766F;
    --border: #E8E0D2;

    --success-bg: #E5F1E7;
    --success-text: #27633C;

    --warning-bg: #F6EBDD;
    --warning-text: #8A6332;

    --danger-bg: #F7E5E2;
    --danger-text: #A33B32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    color: var(--primary);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* HEADER */

.header {
    height: 85px;
    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    font-weight: 400;
    color: var(--accent);
}

.header-label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--muted);
}

/* MAIN */

.container {
    width: 90%;
    max-width: 680px;
    margin: auto;
    padding: 85px 0;
}

/* HERO */

.hero {
    text-align: center;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 58px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 430px;
    margin: 0 auto;
}

/* SEARCH */

#searchForm {
    display: flex;
    gap: 10px;
    margin: 35px auto 0;
    max-width: 520px;
}

input {
    flex: 1;
    min-width: 0;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;

    padding: 17px;
    font-size: 14px;
    color: var(--primary);
    outline: none;
}

input:focus {
    border-color: var(--accent);
}

input::placeholder {
    color: #A6A39C;
}

button {
    background: var(--primary);
    color: var(--white);

    border: none;
    border-radius: 6px;
    padding: 0 24px;

    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #30415B;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button span {
    margin-left: 10px;
}

.message {
    margin-top: 15px;
    font-size: 13px;
    color: var(--danger-text);
    min-height: 16px;
}

/* RESULT */

.result {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;

    margin-top: 45px;
    padding: 30px;

    box-shadow: 0 10px 35px rgba(25, 35, 53, 0.04);
}

.hidden {
    display: none;
}

.result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.label {
    display: block;
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: bold;
    color: var(--muted);
    margin-bottom: 10px;
}

.result-top h2 {
    font-size: 24px;
    letter-spacing: -1px;
}

/* STATUS */

.status {
    background: var(--success-bg);
    color: var(--success-text);

    padding: 8px 13px;
    border-radius: 30px;

    font-size: 11px;
    font-weight: bold;
}

.status.expiring {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status.expired {
    background: var(--danger-bg);
    color: var(--danger-text);
}

/* DATE */

.date-section {
    padding: 30px 0;
}

.date-section h3 {
    font-size: clamp(24px, 5vw, 32px);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.date-section p {
    font-size: 13px;
    color: var(--muted);
}

/* RESULT FOOTER */

.result-footer {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-top: 18px;
    border-top: 1px solid var(--border);

    font-size: 11px;
    color: var(--muted);
}

.result-icon {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    background: var(--success-bg);
    color: var(--success-text);

    border-radius: 50%;
    font-weight: bold;
}

/* INFO */

.info {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 30px;
}

.info-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;

    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;

    display: grid;
    place-items: center;
    font-size: 12px;
}

.info p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

/* FOOTER */

footer {
    padding: 25px 8%;
    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

footer p {
    font-size: 11px;
    color: var(--muted);
}

footer span {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: bold;
}

/* MOBILE */

@media (max-width: 550px) {

    .header {
        padding: 0 5%;
    }

    .container {
        padding: 60px 0;
    }

    #searchForm {
        flex-direction: column;
    }

    #searchForm button {
        padding: 17px;
    }

    .result {
        padding: 22px;
    }

    footer {
        justify-content: center;
        text-align: center;
    }

}
