.custom-quick-registration-form {
    max-width: 700px;
    width: 100%;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(28,82,118,0.08), 0 1.5px 6px rgba(232,111,63,0.10);
    padding: 32px 36px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: #222;
    box-sizing: border-box;
}
.custom-quick-registration-form .form-row {
    margin-bottom: 18px;
}
.custom-quick-registration-form .form-row-group {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}
.custom-quick-registration-form .form-row-group .form-row {
    flex: 1;
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .custom-quick-registration-form .form-row-group {
        flex-direction: column;
        gap: 18px;
    }
}
.custom-quick-registration-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #EB6E3B;
}
.custom-quick-registration-form input[type="text"],
.custom-quick-registration-form input[type="email"],
.custom-quick-registration-form input[type="tel"],
.custom-quick-registration-form input[type="password"],
.custom-quick-registration-form input[type="file"],
.custom-quick-registration-form select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.custom-quick-registration-form input:focus,
.custom-quick-registration-form select:focus {
    border-color: #E86F3F;
    outline: none;
    background: #fff;
}
.custom-quick-registration-form .qr-password-field {
    position: relative;
}
.custom-quick-registration-form .qr-password-field input[type="password"],
.custom-quick-registration-form .qr-password-field input[type="text"] {
    padding-right: 44px;
}
.custom-quick-registration-form .qr-toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    line-height: 1;
}
.custom-quick-registration-form .qr-toggle-password:hover {
    color: #E86F3F;
}
.custom-quick-registration-form .phone-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.custom-quick-registration-form .qr-country-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 170px;
}
.custom-quick-registration-form .phone-row select {
    width: 170px;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .custom-quick-registration-form .qr-country-code-wrap,
    .custom-quick-registration-form .phone-row select {
        width: 130px;
    }
}
.custom-quick-registration-form .subjects-box {
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 12px 14px;
}
.custom-quick-registration-form .select-all-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1.5px dashed #e0e6ed;
    font-weight: 600;
    color: #1C5276;
    cursor: pointer;
}
.custom-quick-registration-form .subjects-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.custom-quick-registration-form .subject-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    width: calc(50% - 10px);
    box-sizing: border-box;
}
.custom-quick-registration-form .subjects-box input[type="checkbox"] {
    width: auto;
    accent-color: #E86F3F;
}
.custom-quick-registration-form .subjects-placeholder {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}
@media (max-width: 480px) {
    .custom-quick-registration-form .subject-checkbox-row {
        width: 100%;
    }
}
.custom-quick-registration-form hr {
    border: none;
    border-top: 1.5px dashed #e0e6ed;
    margin: 24px 0;
}
.custom-quick-registration-form .qr-form-error {
    background: #fdecea;
    border-left: 4px solid #c0392b;
    color: #a71d2a;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}
.custom-quick-registration-form .qr-otp-intro {
    margin: 0 0 18px;
    color: #444;
    line-height: 1.5;
}
.custom-quick-registration-form #qr-otp-code {
    letter-spacing: 4px;
    font-size: 1.2rem;
    text-align: center;
}
.custom-quick-registration-form .qr-otp-links {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}
.custom-quick-registration-form .qr-link-btn {
    background: none;
    border: none;
    color: #1C5276;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    text-decoration: underline;
}
.custom-quick-registration-form .qr-link-btn:hover {
    color: #E86F3F;
}
.custom-quick-registration-form .qr-link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
}
.custom-quick-registration-form .qr-primary-btn,
.custom-quick-registration-form .qr-secondary-btn {
    display: block;
    width: 100%;
    border-radius: 6px;
    padding: 12px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}
.custom-quick-registration-form .qr-primary-btn {
    background: #E86F3F;
    color: #fff;
    border: none;
}
.custom-quick-registration-form .qr-primary-btn:hover {
    background: #1C5276;
}
.custom-quick-registration-form .qr-primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.custom-quick-registration-form .qr-secondary-btn {
    background: none;
    border: 1.5px solid #1C5276;
    color: #1C5276;
    margin-top: 12px;
}
.custom-quick-registration-form .qr-secondary-btn:hover {
    background: #1C5276;
    color: #fff;
}

/* Step 2 - Fee structure */
.custom-quick-registration-form .qr-fee-title {
    color: #1C5276;
    margin: 0 0 20px;
    font-size: 1.3rem;
}
.custom-quick-registration-form .fee-breakdown {
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 6px;
}
.custom-quick-registration-form .fee-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 1rem;
}
.custom-quick-registration-form .fee-row-highlight {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1.5px solid #e0e6ed;
    font-weight: 700;
    color: #1C5276;
    font-size: 1.1rem;
}
.custom-quick-registration-form .fee-note {
    text-align: right;
    margin: 0 0 22px;
    font-size: 0.85rem;
    color: #888;
}
.custom-quick-registration-form .fee-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 14px 0;
    margin-bottom: 20px;
    border-top: 1.5px dashed #e0e6ed;
    border-bottom: 1.5px dashed #e0e6ed;
}
.custom-quick-registration-form .fee-category-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}
.custom-quick-registration-form .fee-category-option input {
    width: auto;
    accent-color: #1C5276;
}
.custom-quick-registration-form .fee-category-normal { color: #1C5276; }
.custom-quick-registration-form .fee-category-needy { color: #E86F3F; }
.custom-quick-registration-form .fee-category-needy input { accent-color: #E86F3F; }
.custom-quick-registration-form .fee-category-orphan { color: #009fe3; }
.custom-quick-registration-form .fee-category-orphan input { accent-color: #009fe3; }
.custom-quick-registration-form .qr-payment-details-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.custom-quick-registration-form .qr-bank-details {
    flex: 1 1 0;
    min-width: 0;
    max-width: 280px;
    background: #f7fafd;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    padding: 18px 20px;
}
.custom-quick-registration-form .qr-bank-details-label {
    margin: 0 0 12px;
    font-weight: 700;
    color: #1C5276;
}
.custom-quick-registration-form .qr-bank-details-table {
    width: 100%;
    border-collapse: collapse;
}
.custom-quick-registration-form .qr-bank-details-table th,
.custom-quick-registration-form .qr-bank-details-table td {
    text-align: left;
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid #e2e8ee;
    font-size: 0.9rem;
}
.custom-quick-registration-form .qr-bank-details-table th {
    color: #555;
    font-weight: 600;
    width: 140px;
}
.custom-quick-registration-form .qr-bank-details-table tr:last-child th,
.custom-quick-registration-form .qr-bank-details-table tr:last-child td {
    border-bottom: none;
}
.custom-quick-registration-form .qr-bank-details-notes {
    font-style: italic;
    color: #555;
    margin: 12px 0 0;
    font-size: 0.85rem;
}
.custom-quick-registration-form .qr-payment-details-row #qr-payment-code-wrapper {
    flex: 0 0 auto;
}
.custom-quick-registration-form .qr-payment-code {
    text-align: center;
    margin-bottom: 0;
}
.custom-quick-registration-form .qr-payment-code-label {
    margin: 0 0 12px;
    font-weight: 700;
    color: #1C5276;
}
.custom-quick-registration-form .qr-payment-code img {
    width: 100%;
    max-width: 260px;
    height: auto;
}
@media (max-width: 560px) {
    .custom-quick-registration-form .qr-payment-details-row {
        flex-wrap: wrap;
    }
    .custom-quick-registration-form .qr-payment-code img {
        max-width: 280px;
    }
}
.custom-quick-registration-form .fee-declaration {
    background: #f7fafd;
    border-left: 4px solid #009fe3;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.custom-quick-registration-form .fee-declaration-title {
    margin: 0 0 8px;
    font-weight: 700;
    color: #1C5276;
}
.custom-quick-registration-form .fee-declaration label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    cursor: pointer;
}
.custom-quick-registration-form .fee-declaration input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #009fe3;
}
.custom-quick-registration-form .fee-declaration-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin: -8px 0 16px;
}
.custom-quick-registration-form .qr-receipt-row {
    margin-bottom: 22px;
}
.custom-quick-registration-form .qr-receipt-hint {
    font-size: 0.85rem;
    color: #888;
    margin: 6px 0 0;
}
@media (max-width: 480px) {
    .custom-quick-registration-form .fee-category-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Printable challan */
.qr-challan-card {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    padding: 24px;
}
.qr-challan-header {
    text-align: center;
    border-bottom: 3px solid #E86F3F;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.qr-challan-header h2 {
    color: #1C5276;
    margin: 0 0 4px;
}
.qr-challan-header h3 {
    margin: 0;
    color: #E86F3F;
}
.qr-challan-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.qr-challan-table th,
.qr-challan-table td {
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #ddd;
}
.qr-challan-table th {
    background: #f7fafd;
    color: #1C5276;
    width: 200px;
}
.qr-challan-notes {
    font-style: italic;
    color: #555;
}
.qr-challan-instructions {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f7fafd;
    border-left: 4px solid #009fe3;
    border-radius: 6px;
    color: #333;
}
.qr-challan-qr-page {
    /* Flows naturally after the instructions above instead of being forced
       onto its own page - there was plenty of room left on page 1, and
       forcing a second page just for this wasted a sheet of paper. */
    margin-top: 20px;
    text-align: center;
}
.qr-challan-qr-label {
    margin: 0 0 12px;
    font-weight: 700;
    color: #1C5276;
}
.qr-challan-qr-instructions {
    font-size: 15px;
    color: #333;
    margin: 0 0 14px;
}
.qr-challan-qr-image img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}
@media print {
    /* display:none (not visibility:hidden) so hidden content's layout height
       doesn't still count toward pagination - visibility:hidden here caused
       several blank printed pages on tall pages like the homepage, since
       hidden elements keep occupying their full space in the page flow. */
    body.qr-printing-mode > * {
        display: none !important;
    }
    body.qr-printing-mode #qr-print-wrapper {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        z-index: 999999 !important;
    }
}
