* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif
}

body {
    background: #ecf0f3;
}

.wrapper {
    max-width: 800px;   /* Wider for side-by-side fields */
    margin: 80px auto;
    padding: 40px 30px;
    background-color: #ecf0f3;
    border-radius: 15px;
    box-shadow: 13px 13px 20px #cbced1, -13px -13px 20px #fff;
}

.logo {
    width: 80px;
    margin: auto;
}

.logo img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 0px 3px #5f5f5f,
                0px 0px 0px 5px #ecf0f3,
                8px 8px 15px #a7aaa7,
                -8px -8px 15px #fff;
}

.wrapper .name {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 1.3px;
    padding-left: 10px;
    color: #555;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

/* === GRID LAYOUT FOR FORM === */
#form_certificate {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for desktop */
    grid-gap: 20px 30px; /* row-gap column-gap */
}

#form_certificate label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* Ensure labels span both columns */
#form_certificate label {
    grid-column: span 2;
}

/* Form fields */
.wrapper .form-field {
    padding-left: 10px;
    border-radius: 20px;
    box-shadow: inset 8px 8px 8px #cbced1,
                inset -8px -8px 8px #fff;
    display: flex;
    align-items: center;
    width: 100%;
}

.wrapper .form-field input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 1.1rem;
    color: #666;
    padding: 10px 15px;
}

.wrapper .form-field .fas {
    color: #555;
    margin-right: 10px;
}

.wrapper select {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 1.1rem;
    color: #666;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: inset 8px 8px 8px #cbced1,
                inset -8px -8px 8px #fff;
}

/* Button full width */
.wrapper .btn {
    grid-column: span 2;
    box-shadow: none;
    width: 100%;
    height: 40px;
    background-color: #03A9F4;
    color: #fff;
    border-radius: 25px;
    box-shadow: 3px 3px 3px #b1b1b1,
                -3px -3px 3px #fff;
    letter-spacing: 1.3px;
    font-size: 16px;
    font-weight: bold;
}

.wrapper .btn:hover {
    background-color: #039BE5;
}

.wrapper a {
    text-decoration: none;
    font-size: 0.9rem;
    color: #03A9F4;
}

.wrapper a:hover {
    color: #039BE5;
}

.wrapper .form-group {
    margin-bottom: 0.5rem !important;
}

/* === RESPONSIVE (STACK ON MOBILE) === */
@media(max-width: 768px) {
    #form_certificate {
        grid-template-columns: 1fr; /* Single column */
    }

    #form_certificate label,
    .wrapper .btn {
        grid-column: span 1;
    }

    .wrapper {
        max-width: 90%;
        padding: 25px 20px;
    }
}

/* === UPI FIELDS GRID === */
#upi_fields {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    grid-gap: 20px 30px; /* spacing */
    grid-column: span 2; /* make it span across the full form width */
}

/* Make labels in UPI section consistent */
#upi_fields label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* Responsive: stack UPI fields on mobile */
@media(max-width: 768px) {
    #upi_fields {
        grid-template-columns: 1fr; /* single column on mobile */
    }
}

