* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav h1 {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    transform: translateY(-2px);
}

.user-info {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
}

/* Modern Card Design */
.card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 30px auto;
}

.card-header {
    margin-bottom: 40px;
}

.card-header-icon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.icon-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.card h2 {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-subtitle {
    color: #6b7280;
    font-size: 16px;
}

/* Form Groups with Modern Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s;
    font-size: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group input:focus + .input-icon,
.form-group textarea:focus ~ .input-icon {
    color: #10b981;
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Park Selection Cards */
.park-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.park-card {
    position: relative;
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.park-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.park-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.park-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.park-icon {
    font-size: 36px;
}

.park-popular {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.park-name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.park-price {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 700;
    font-size: 20px;
}

.park-price-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.radio-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.park-card.selected .radio-indicator {
    border-color: #10b981;
    background: #10b981;
}

.radio-checkmark {
    color: white;
    font-size: 14px;
    font-weight: 700;
}

/* Reason/Purpose Cards */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.reason-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.reason-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.reason-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.reason-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.reason-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* Number Counter */
.number-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.counter-btn.minus {
    background: #f3f4f6;
    color: #374151;
}

.counter-btn.minus:hover {
    background: #e5e7eb;
}

.counter-btn.plus {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.counter-btn.plus:hover {
    transform: scale(1.05);
}

.counter-display {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
}

.counter-value {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
}

.counter-label {
    font-size: 14px;
    color: #6b7280;
    margin-left: 8px;
}

/* Summary/Info Box */
.info-box {
    position: relative;
    padding: 24px;
    border: 2px solid #d1fae5;
    border-radius: 24px;
    margin: 32px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    overflow: hidden;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.info-box-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.info-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #4b5563;
}

.info-row.total {
    border-top: 2px solid #d1fae5;
    margin-top: 12px;
    padding-top: 16px;
}

.info-row.total .info-label {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

.info-amount {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-currency {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: -4px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.btn-icon {
    font-size: 20px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Security/Notice Boxes */
.notice-box {
    padding: 20px;
    border: 2px solid #dbeafe;
    border-radius: 16px;
    margin: 24px 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    display: flex;
    gap: 16px;
}

.notice-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 20px;
}

.notice-content h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.notice-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Success Screen */
.success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 18px;
    color: #6b7280;
}

.permit-id-badge {
    display: inline-block;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    margin-top: 20px;
}

.permit-id-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.permit-id-value {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: 40px;
    border: 2px solid #d1fae5;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(20, 184, 166, 0.02) 100%);
    margin: 32px 0;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 24px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    margin-bottom: 24px;
}

/* Detail Cards Grid */
.detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.detail-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    transition: all 0.3s;
}

.detail-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.detail-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
}

.detail-icon.purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.detail-icon.orange {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.detail-icon.green {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
}

.detail-value {
    font-weight: 700;
    color: #1f2937;
}

.detail-info {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Reminders List */
.reminders-list {
    list-style: none;
    padding: 0;
}

.reminders-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: #374151;
}

.reminder-check {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    color: white;
    margin: 60px 0;
}

.welcome-section h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.welcome-section p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    color: #10b981;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
}

table th,
table td {
    padding: 16px;
    text-align: left;
}

table th {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

table tr {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Link Styles */
.link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link:hover {
    color: #059669;
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.text-small {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* OTP Input */
.otp-input {
    text-align: center;
    letter-spacing: 1em;
    font-size: 32px !important;
    font-weight: 700;
    padding: 20px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 24px;
    }
    
    .park-grid, .reason-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-section h2 {
        font-size: 36px;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hide radio buttons but make them accessible */
input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
