:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-color: #ffc107;
    --warning-gradient: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --error-color: #dc3545;
    --error-gradient: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    --info-color: #3b82f6;
    --text-primary: #2d3748;
    --text-secondary: #6b7280;
    --text-muted: #4a5568;
    --border-color: #e5e7eb;
    --background-light: #f3f4f6;
    --background-lighter: #f5f7fa;
    --text-white: white;
}

.application-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 1rem 1rem;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.back-button:hover {
    background: white;
    color: #667eea;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step-number.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-number.completed {
    background: var(--success-color);
    color: var(--text-white);
}

.step-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.step-label.active {
    color: var(--primary-color);
}

.step-divider {
    width: 3rem;
    height: 2px;
    background: var(--border-color);
}

.membership-type-card {
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--text-white);
}

.membership-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.membership-type-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-gradient-light);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.membership-type-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.membership-type-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.membership-type-duration {
    display: inline-block;
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #4b5563;
}

.approval-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.payment-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-type-option {
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--text-white);
}

.payment-type-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.payment-type-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-gradient-light);
}

.payment-type-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.payment-type-name {
    font-weight: 700;
    color: var(--text-primary);
}

.summary-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--text-white);
    margin-bottom: 2rem;
}

.summary-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 1.5rem;
}

.summary-body {
    padding: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-white);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-primary-gradient:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: var(--text-white);
}

.btn-primary-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary-outline {
    background: var(--text-white);
    border: 2px solid var(--primary-color);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-secondary-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-white);
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.dev-info-card {
    border: 2px solid var(--warning-color);
    border-radius: 0.75rem;
    background: #fff9e6;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dev-info-header {
    background: var(--warning-gradient);
    color: #000;
    padding: 1rem;
    font-weight: 700;
}

.dev-info-body {
    padding: 1.5rem;
}

.test-card-info code {
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    color: #333;
}

.btn-pay {
    background: var(--success-gradient);
    border: none;
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-white);
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: var(--text-white);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-banner {
    background: var(--success-gradient);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 1rem;
}

.success-banner h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.error-alert {
    background: var(--error-gradient);
    border: 2px solid var(--error-color);
    color: #721c24;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.contact-details-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--text-white);
    margin-bottom: 2rem;
}

.contact-details-header {
    background: linear-gradient(135deg, var(--background-lighter) 0%, #e8eef5 100%);
    padding: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.contact-details-body {
    padding: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-row-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background-color: var(--background-light);
    cursor: not-allowed;
}

/* New utility classes for inline styles */
.small-text {
    font-size: 0.875rem;
}

.price-highlight {
    color: var(--primary-color);
}

.price-large {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.info-card {
    border: 2px solid var(--info-color);
    border-radius: 1rem;
    background: #eff6ff;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.info-card-body {
    color: #1e3a8a;
}

.installment-container {
    margin-bottom: 1.5rem;
}

.installment-option {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--text-white);
}

.installment-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-gradient-light);
}

.installment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.installment-detail {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.installment-total {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Draft Applications Section */
.draft-applications-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 1rem;
    padding: 1.5rem;
}

.draft-applications-section h4 {
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.draft-applications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.draft-application-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--text-white);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.draft-application-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.draft-application-card:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.draft-info {
    flex: 1;
}

.draft-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.draft-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.draft-action {
    margin-left: 1rem;
}

.draft-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Save Draft Button */
.btn-save-draft {
    background: var(--text-white);
    border: 2px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-save-draft:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #4b5563;
    color: #4b5563;
}

.btn-save-draft:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
