* {
    box-sizing: border-box;
}

:root {
    --card-width: min(92vw, 760px);
    --card-padding: clamp(24px, 5vw, 56px);
    --base-font: clamp(16px, 1vw + 15px, 19px);
}

html {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body {
    margin: 0;
    min-height: 100vh;
    padding: clamp(16px, 3vw, 32px);
    background: #f3f4f6;
    font-family: "Roboto Condensed", sans-serif;
    font-size: var(--base-font);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    background-image: url("../img/background.png"); /* Go up one level (from css) then into img */
    background-repeat: no-repeat;
    background-size: cover;
}

.card {
    background: white;
    width: var(--card-width);
    padding: var(--card-padding);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

h1 {
    margin-bottom: clamp(32px, 3vw, 48px);
    font-size: clamp(28px, 2vw + 20px, 36px);
    font-weight: 700;
}

.result-box {
    border: 1px solid #C9C9C9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
}

.amount {
    font-size: clamp(38px, 3vw + 28px, 46px);
    font-weight: 700;
    margin-bottom: 6px;
}

.subtitle {
    color: #666;
    font-size: clamp(15px, 1vw + 13px, 17px);
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 400;
}

input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

input::placeholder {
    color: #808080;
    font-family: "Roboto Condensed", sans-serif;
}

input:focus {
    outline: none;
    border-color: #D60000;
}

.btn {
    margin-top: 10px;
    background: #D60000;
    color: white;
    border: none;
    padding: clamp(12px, 1vw + 10px, 16px) clamp(22px, 3vw + 24px, 56px);
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    transition: .2s;
    font-family: "Roboto Condensed", sans-serif;
}

.btn:hover {
    background: #b91c1c;
}

.help-section {
    margin-top: 28px;
    font-size: 15px;
    color: #4D4D4D;
}

.protocol-btn {
    margin-top: 10px;
    background: transparent;
    color: #D60000;
    border: 1px solid #D60000;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
}

.protocol-btn:hover {
    background: #dc2626;
    color: white;
}

.plain-link {
  text-decoration: none;
  color: inherit;
}

.footer {
    background-color: #EEE;
    font-family: "Roboto Condensed", sans-serif;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 640px) {
    body {
        justify-content: flex-start;
        padding-top: 24px;
        gap: 16px;
    }

    .card {
        width: min(96vw, 560px);
        padding: clamp(22px, 6vw, 32px);
        margin-inline: auto;
    }

    h1 {
        font-size: clamp(24px, 3vw + 18px, 30px);
        margin-bottom: 26px;
    }

    .amount {
        font-size: clamp(30px, 5vw + 16px, 38px);
    }

    .result-box {
        padding: 18px;
        margin-bottom: 20px;
    }

    .btn,
    .protocol-btn {
        width: 100%;
    }

    .help-section {
        font-size: 14px;
    }

    .footer {
        font-size: 14px;
    }
}
