body {
    font-family: Arial, sans-serif;
    background: #f5f2ea;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 25px;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #333;
    text-decoration: none;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

h2 {
    margin-top: 0;
}

p {
    line-height: 1.6;
}

label {
    display:block;
    margin-top:15px;
    font-weight:bold;
}

input,
textarea,
select {
    width:100%;
    padding:12px;
    margin-top:6px;
    box-sizing:border-box;
    border:1px solid #ccc;
    border-radius:8px;
}

textarea {
    min-height:120px;
}

button {
    margin-top:25px;
    padding:14px 28px;
    background:#333;
    color:white;
    border:0;
    border-radius:8px;
    cursor:pointer;
    font-size:1rem;
}

button:hover {
    opacity:0.85;
}

@media (max-width:600px) {

    .container {
        margin:20px auto;
        padding:15px;
    }

    .card {
        padding:25px;
    }

    h1 {
        font-size:1.8rem;
    }

}


/* Donor gateway front page */

.donor-intro {
    margin-bottom: 28px;
}

.donor-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 34px;
}

.donor-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 14px 22px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #d9d4c9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.donor-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
}

.donor-thanks {
    text-align: center;
    margin: 10px 0 30px;
}

@media (max-width: 650px) {
    .donor-actions {
        grid-template-columns: 1fr;
    }
}


/* Unified donor form */

.gateway-step {
    border: 0;
    padding: 0;
    margin: 30px 0;
}

.gateway-step legend {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.gateway-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gateway-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d9d4c9;
    border-radius: 10px;
    cursor: pointer;
}

.gateway-choice input {
    width: auto;
    margin: 0;
}

.gateway-choice span {
    font-weight: 600;
}

#donor-details {
    margin-top: 28px;
}

#donor-details hr {
    border: 0;
    border-top: 1px solid #d9d4c9;
    margin-bottom: 30px;
}

.form-error {
    padding: 12px 14px;
    border: 1px solid #b3261e;
    border-radius: 8px;
    font-weight: 600;
}

[hidden] {
    display: none !important;
}

@media (max-width: 650px) {

    .gateway-choices {
        grid-template-columns: 1fr;
    }
}


/* Subtle back button */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(120, 115, 105, 0.22);
    border-radius: 8px;

    color: #55514a;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;

    opacity: 0.78;

    transition:
        opacity 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.back-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(120, 115, 105, 0.38);
}
