* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --accent: hsl(213, 80%, 50%);
    --body: hsl(213, 40%, 96%);

    --border: hsl(0, 0%, 90%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(213, 60%, 96%);

    --text-primary: hsl(0, 0%, 8%);
    --text-secondary: hsl(0, 0%, 25%);
    --text-tertiary: hsl(0, 0%, 50%);
    --text-quaternary: hsl(0, 0%, 75%);
}

::-webkit-scrollbar {
    display: none;
}


body {
    background: var(--body);
    padding: 20px;
}

main {
    width: 100%;
    border-radius: 30px;
    background: var(--card);
    margin: 0 auto;
    padding: 25px;
}


/* =======================
    H E A D E R  ========
=========================*/

header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-name {
    font-size: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.blue-tick {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    margin-bottom: -1px;
    margin-left: 6px;
}

.upi-id {
    font-size: 12px;
    color: var(--text-tertiary); 
    margin-top: 2px;
}


/* ===========================
    Q R  S E C T I O N  ======
=============================*/

.qr-section {
    width: fit-content;
    aspect-ratio: 1/1;
    border-radius: 25px;
    background: var(--card-foreground);
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
    margin-top: 25px;
    margin-inline: auto;
}

.qr-wrapper {
    width: fit-content;
    aspect-ratio: 1/1;
    background: var(--card);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    
    position: relative;
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
}

.top-left {
    top: -12px;
    left: -12px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.top-right {
    top: -12px;
    right: -12px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.bottom-left {
    bottom: -12px;
    left: -12px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.bottom-right {
    bottom: -12px;
    right: -12px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.qr-image {
    width: 150px;
    max-width: 100%;
    aspect-ratio: 1/1;
}


/* =======================
    F O R M  ============
=========================*/

form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.optional {
    font-weight: normal;
    color: var(--text-quaternary);
}

.input {
    width: 100%;
    height: 50px;
    border-radius: 15px;
    corner-shape: squircle;
    border: 1px solid var(--border);

    display: flex;
    align-items: center;
    padding-left: 16px;
}

.rupee {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-tertiary);
    margin-right: 8px;
}

#amount {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;

    font-size: 16px;
    font-weight: bold;
    color: var(--text-secondary);

    padding-right: 12px;
}

#note {
    width: 100%;
    height: 50px;
    outline: none;
    background: none;
    border-radius: 15px;
    corner-shape: squircle;
    border: 1px solid var(--border);

    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    
    padding: 0 16px;
}

input::placeholder {
    font-weight: normal;
    color: var(--text-quaternary);
}

.input:focus-within,
#note:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--card-foreground);
}

button {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    corner-shape: squircle;
    background: var(--accent);
    outline: 2px solid transparent;
    outline-offset: 2px;

    font-size: 16px;
    font-weight: bold;
    color: var(--card);
    
    margin-top: 5px;
}


/* =======================================
    M E D I A  Q U E R I E S  ===========
=========================================*/

@media screen and (min-width: 700px) {
    body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    main {
        margin: 0;
        max-width: fit-content;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .qr-section {
        grid-column: 1;
        grid-row: 2;
        margin-right: 25px;
    }

    .qr-image {
        max-width: 150px;
    }

    form {
        grid-column:2;
        grid-row: 2;
    }
}

@media screen and (max-width: 350px) {
    .qr-section {
        padding: 45px;
    }
}

@media screen and (max-width: 320px) {
    .qr-section {
        padding: 40px;
    }
}

@media print {
    main {
        max-width: 450px;
        margin-top: 100px;
        padding-bottom: 30px;
    }

    header {
        gap: 12px;
    }

    .profile-image {
        width: 50px;
        height: 50px;
    }

    .blue-tick {
        width: 20px;
        height: 20px;
        margin-bottom: -2px;
        margin-left: 8px;
    }

    .qr-section {
        margin-top: 20px;
    }

    .qr-image {
        width: 200px;
    }

    form {
        margin-top: 20px;
        gap: 30px;
    }

    .input, #note {
        border: none;
        padding-left: 32px;
    }

    .upi-id,
    label {
        font-size: 16px;
    }

    .profile-name,
    .rupee,
    #amount,
    #note,
    input::placeholder {
        font-size: 20px;
    }

    .rupee,
    #amount,
    #note {
        color: var(--text-primary);
    }

    button {
        display: none;
    }
}
