:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --background: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(255, 255, 255, 0.3);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobAnimation 25s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes blobAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(50px, -70px) rotate(90deg) scale(1.1);
    }

    66% {
        transform: translate(-40px, 40px) rotate(180deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeInDown 0.8s ease-out;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFFACD, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.header p {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p:last-child {
    margin-top: 1rem;
    font-weight: 700;
    color: #FFFACD;
    font-size: 1.2rem;
}

/* Form Styles */
.registration-form {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.registration-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.registration-form h3,
.fee-info-card h4,
.payment-section h3 {
    color: #FFFACD !important;
    /* Premium Lemon Chiffon/Gold */
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fee-badge strong {
    color: #4338ca !important; /* Deep Indigo for better visibility on white */
    font-weight: 800;
}

.fee-includes {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #e2e8f0 !important;
    /* Light Slate */
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.required {
    color: #ff4d4d;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

input:focus+.input-icon,
textarea:focus+.input-icon {
    color: var(--primary);
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 1rem;
}

.radio-card {
    cursor: pointer;
    position: relative;
    height: 100%; /* Ensure card takes full grid height */
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    height: 160px; /* Uniform height for all 3 boxes */
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.radio-content i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #64748b;
}

.radio-content span {
    color: #1e293b;
    font-weight: 500;
}

.radio-card input:checked + .radio-content {
    border-color: #ffd700;
    background: linear-gradient(135deg, #FFD700, #FFFACD);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(255, 215, 0, 0.4);
}

.radio-card input:checked + .radio-content i,
.radio-card input:checked + .radio-content span {
    color: #000000;
    font-weight: 800;
}

/* Payment Section */
.payment-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.merchant-details {
    margin: 1rem 0;
    color: #ffffff;
}

.merchant-name {
    font-size: 1.8rem; /* Increased size */
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFD700, #FFFACD, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.merchant-tid {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    letter-spacing: 3px;
    font-weight: 800;
    color: #00f2fe; /* Electric Cyan */
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.05);
    padding: 0.5rem 1.25rem;
    display: inline-block;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.qr-container {
    margin: 1.5rem auto;
    width: 220px;
    height: 220px;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-hint {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Checkbox */
.checkbox-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: var(--input-bg);
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input~.checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 0.8rem;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.checkbox-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--input-bg);
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.file-preview {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 300px;
    margin-left: -150px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 1rem;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

.toast.info {
    background-color: var(--primary);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fee Details Container */
.fee-details-container {
    margin-top: 1.5rem;
    position: relative;
    min-height: 180px;
}

.fee-info-card {
    display: none;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.fee-info-card.active {
    display: block;
}

.fee-info-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.fee-badge {
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.fee-badge.regular {
    color: var(--text-muted);
}

.fee-badge strong {
    color: var(--primary);
    margin-left: 0.25rem;
}

.fee-includes {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .registration-form {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 2.25rem;
    }
}