/* Registration Form Styles */

.registration-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

/* Progress Indicator */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: -1;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--karnataka-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 33, 71, 0.1);
}

.progress-step.completed .progress-step-circle {
    background: #28a745;
    color: white;
}

.progress-step.completed .progress-step-circle::before {
    content: '✓';
}

.progress-step-label {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.progress-step.active .progress-step-label {
    color: var(--karnataka-blue);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Membership Type Cards */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.membership-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.membership-card:hover {
    border-color: var(--karnataka-blue);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.1);
    transform: translateY(-2px);
}

.membership-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.membership-card input[type="radio"]:checked+.card-content {
    border-left: 4px solid var(--karnataka-blue);
}

.membership-card.selected {
    border-color: var(--karnataka-blue);
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.05) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.membership-type-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--karnataka-blue);
    margin-bottom: 10px;
}

.membership-fee {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--karnataka-red);
    margin: 10px 0;
}

.membership-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* File Upload Zones */
.file-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px 0;
}

.file-upload-zone:hover {
    border-color: var(--karnataka-blue);
    background: rgba(0, 33, 71, 0.02);
}

.file-upload-zone.drag-over {
    border-color: var(--karnataka-blue);
    background: rgba(0, 33, 71, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.uploaded-file-preview {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.uploaded-file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.uploaded-file-info {
    flex: 1;
}

.uploaded-file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.uploaded-file-size {
    font-size: 0.85rem;
    color: #666;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.remove-file-btn:hover {
    background: #c82333;
}

/* Representative Photo Grid */
.representative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.representative-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.representative-photo-upload {
    width: 100%;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.representative-photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Step Action Buttons */
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 30px;
}

.step-actions .btn {
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.step-actions .btn-primary {
    background: linear-gradient(135deg, #002147 0%, #003d82 100%);
    border: none;
    flex: 1;
    max-width: 400px;
}

.step-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);
}

.step-actions .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    flex: 1;
    max-width: 400px;
}

.step-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.step-actions .btn-secondary {
    background: #6c757d;
    border: none;
}

.step-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Remove old navigation buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
}

.btn-next,
.btn-submit {
    background: var(--karnataka-blue);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: #001a33;
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.3);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Address Grid */
.address-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin: 15px 0;
}

.address-cell {
    aspect-ratio: 1;
    border: 1px solid #ddd;
    text-align: center;
    padding: 4px;
    font-size: 0.9rem;
}

/* Review Section */
.review-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-section h4 {
    color: var(--karnataka-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--karnataka-red);
}

.review-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-label {
    font-weight: 600;
    width: 200px;
    color: #555;
}

.review-value {
    flex: 1;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-cards {
        grid-template-columns: 1fr;
    }

    .representative-grid {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .progress-step {
        flex-basis: 50%;
        margin-bottom: 20px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--karnataka-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.application-id {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}