/*
 * EcoMyCard Free Card Creator
 *
 * Initial responsive styling for the public card-generation form.
 * The layout is intentionally simple and mobile-friendly because
 * many users will create their card directly from a smartphone.
 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background: #f5f7f6;
    color: #202520;
}

.page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 50px 20px;
}

.card-creator {
    width: 100%;
    max-width: 560px;

    background: white;

    padding: 40px;

    border-radius: 16px;

    box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.08);
}

.brand {
    text-align: center;
    margin-bottom: 35px;
}

.brand h1 {
    margin: 0;

    font-size: 36px;
    font-weight: 700;

    color: #2f7d32;
}

.brand p {
    margin-top: 8px;

    font-size: 17px;
    color: #687068;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;
}

.field input {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #ccd3cc;
    border-radius: 8px;

    font-size: 16px;

    background: white;
}

.field input:focus {
    outline: none;

    border-color: #2f7d32;

    box-shadow:
            0 0 0 3px rgba(47, 125, 50, 0.10);
}

.field input[type="file"] {
    padding: 10px;
}

button {
    width: 100%;

    margin-top: 10px;

    padding: 15px;

    border: none;
    border-radius: 9px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    background: #2f7d32;
    color: white;
}

button:hover {
    opacity: 0.92;
}

.privacy {
    margin-top: 20px;

    text-align: center;

    font-size: 12px;
    line-height: 1.5;

    color: #858b85;
}


/*
 * Mobile layout.
 *
 * Reduce spacing so the form remains comfortable on smaller screens.
 */
@media (max-width: 600px) {

    .page {
        padding: 20px 12px;
    }

    .card-creator {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .brand h1 {
        font-size: 30px;
    }
}
/*
 * Wallet actions shown after the EcoMyCard has been generated.
 *
 * The buttons are intentionally separated and large enough for
 * comfortable use on both desktop and mobile devices.
 */
.wallet-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;

    margin-top: 32px;
    margin-bottom: 24px;

    flex-wrap: wrap;
}


/*
 * Shared Wallet button appearance.
 */
.wallet-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 210px;
    min-height: 52px;

    padding: 12px 20px;

    border-radius: 9px;

    background: #000000;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
            transform 0.15s ease,
            opacity 0.15s ease;
}


.wallet-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


/*
 * Stack Wallet buttons vertically on small screens.
 */
@media (max-width: 600px) {

    .wallet-actions {
        flex-direction: column;
        gap: 12px;
    }

    .wallet-button {
        width: 100%;
    }
}

/*
 * Official Wallet badges.
 *
 * Preserve the original proportions of the supplied brand assets.
 */
.wallet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wallet-badge img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
}

.wallet-badge:hover {
    opacity: 0.88;
}
/* EcoMyCard 1.0 - Logo selection options */

.logo-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0 16px;
}

.logo-options label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    margin: 0;
    cursor: pointer;
}

.logo-options input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 16px;
    accent-color: #2e7d32;
}

#logo-upload-container[hidden] {
    display: none;
}