@import url(./theme.css);
@import url(./responsive.css);

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-color);
}

/* Custom Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    text-decoration: none;
}

/* Registration Header */
.registration-header {
    background: var(--gradient-primary);
    padding: 120px 0 60px;
    margin-top: 72px;
    color: white;
    position: relative;
    overflow: hidden;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.deadline-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-large);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.form-section {
    position: relative;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.section-header h3 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.section-header h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 101, 101, 0.15);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(72, 187, 120, 0.15);
}

.invalid-feedback {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Checkboxes */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 0.5rem;
}

/* Fee Info Card */
.fee-info-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fee-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.fee-info-card > * {
    position: relative;
    z-index: 2;
}

.fee-info-card h4 {
    font-weight: 700;
    margin-bottom: 2rem;
}

.fee-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.fee-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.fee-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Payment Section Styles */
.payment-section {
    background: var(--light-color);
    min-height: 100vh;
}

.payment-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-large);
}

.payment-header h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.fee-summary {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.fee-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.fee-summary > * {
    position: relative;
    z-index: 2;
}

.fee-breakdown .d-flex {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.fee-breakdown .d-flex:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.payment-method-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    background: var(--light-color);
    border-radius: 13px 13px 0 0;
}

.payment-option.active .payment-method-header {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.payment-method-body {
    padding: 1.5rem;
}

.qr-placeholder {
    width: 220px;
    height: 220px;
    border: 2px dashed #ddd;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--light-color);
}

.qr-code {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    padding: 10px;
    background: white;
}

.upi-apps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.upi-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.upi-app:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.upi-app i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.bank-details {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row > div {
    display: flex;
    align-items: center;
}

.upload-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

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

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

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

.upload-placeholder p {
    margin-bottom: 0.5rem;
}

.image-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: white;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.preview-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.upload-progress {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.upload-progress .progress {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.upload-notes {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
}

.payment-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

/* Success Section */
.success-section {
    background: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.success-message {
    background: white;
    border-radius: 25px;
    padding: 4rem 2rem;
    box-shadow: var(--shadow-large);
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

.success-message h2 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.detail-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 15px;
    height: 100%;
}

.detail-card h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-card ul li {
    margin-bottom: 0.5rem;
}

/* Submit Button */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    background: var(--gradient-primary);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Loading State */
.btn-primary.loading {
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container,
    .payment-container {
        padding: 2rem 1.5rem;
        margin-top: -30px;
        border-radius: 20px;
    }
    
    .registration-header {
        padding: 100px 0 40px;
    }
    
    .fee-info-card,
    .fee-summary {
        padding: 2rem 1.5rem;
    }
    
    .btn-primary,
    .btn-success {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .success-message {
        padding: 3rem 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upi-apps {
        gap: 0.5rem;
    }
    
    .upi-app {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-container,
    .payment-container {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .registration-header .display-4 {
        font-size: 2rem;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .fee-card {
        padding: 1.5rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-icon i {
        font-size: 2.5rem;
    }
}

/* Enhanced Hover Effects */
.form-control:hover,
.form-select:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.form-section {
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
}


