*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --header-height: 82px;
}

html,
body {
    width: 100%;
    height: 100%; 
    margin: 0;
    padding: 0;
    font-family: 'Poppins', serif, sans-serif;
    background-color: rgba(218, 177, 218, 0.2);
}

body {
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
}

.freeJoin {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: whitesmoke;
    color: purple;
    border: 1px solid purple;
    border-radius: 8px;
    padding: 12px 0;   /* only vertical padding */
    margin: 1rem 0;

    text-align: center;
    width: 100%;       /* full width of parent */
}

.freeJoin button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: purple;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.freeJoin button:hover {
    background: #5a005a;
    color: whitesmoke;
}

.paySection {
    background-color: whitesmoke;
    border: 1px solid purple;

    width: 100%;       /* full width of viewport */
    max-width: none;   /* remove max-width restriction */
    padding: 2rem 0 0 0; /* only top padding */

    display: flex;
    flex-direction: column;
    align-items: center; /* center card horizontally */
}

/* ==========================
   CARD CONTAINER
========================== */
#card {
    width: 100%;          /* full width of parent */
    max-width: 680px;     /* desktop limit */
    background-color: rgba(218, 177, 218, 0.3);

    border: 1px solid black;
    border-radius: 12px;
    padding: 1.8rem;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==========================
   LABELS
========================== */
label {
    font-size: 16px;
    color: black;
}

label:hover {
    color: purple;
}

/* ==========================
   INPUTS & SELECTS
========================== */
input,
select {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #999;
    padding: 0 10px;
    font-size: 16px;
}

/* Remove number arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* ==========================
   AMOUNT FIELD
========================== */
.amount-field {
    width: 100%;
}

.amount-input {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid #999;
    border-radius: 8px;
    background: white;
}

.amount-input span {
    padding: 0 12px;
    font-size: 18px;
    color: purple;
}

.amount-input input {
    border: none;
    outline: none;
    flex: 1;
}
#card-element {
    width: 100%;
    height: 44px;
    border: 1px solid #999;
    border-radius: 8px;
    background: white;
    padding: 10px;
}
.confirm-btn {
    margin: 1.5rem auto 0;
    width: 100%;
    max-width: 320px;
    height: 45px;

    font-size: 18px;
    color: white;
    background-color: purple;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.confirm-btn:hover {
    background-color: #5a005a;
}
@media (max-width: 768px) {
    .paySection {
        padding: 2rem 0 0 0; /* top padding only */
    }

    #card {
        padding: 1.2rem;
    }

    label {
        font-size: 15px;
    }

    .confirm-btn {
        font-size: 16px;
    }
}
