:root {
    --primary-color: #2c3e50;
    --secondary-color: #8B0000;
    --accent-color: #3498db;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container-wrapper {
    max-width: 800px;
}

.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #7f8c8d;
    margin: 0;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control, .form-select {
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ecf0f1;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--secondary-color);
}

.row > .col-md-6 {
    margin-bottom: 15px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: white;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.btn-submit.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-check {
    margin: 15px 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    margin-left: 8px;
}

.required-field::after {
    content: " *";
    color: var(--secondary-color);
}

.alert {
    border-radius: 8px;
    margin-top: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@media (max-width: 768px) {
    .form-card {
        padding: 25px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .row > .col-md-6 {
        margin-bottom: 10px;
    }
}

/* Tab Navigation Styling */
.nav-tabs-custom {
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-tabs-custom .nav-link {
    border: none;
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    min-width: 150px;
    position: relative;
}

.nav-tabs-custom .nav-link:hover {
    background: #e3f2fd;
    color: var(--accent-color);
}

.nav-tabs-custom .nav-link.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

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

.tab-pane {
    padding: 20px 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tab-pane.show.active {
    display: block;
    opacity: 1;
}

.btn-group-tabs {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-previous, .btn-next {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-previous {
    background: #ecf0f1;
    color: var(--primary-color);
}

.btn-previous:hover {
    background: #bdc3c7;
}

.btn-next {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.preview-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.preview-item {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.preview-item-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.preview-item-value {
    color: #555;
    margin-top: 5px;
    font-size: 15px;
}

.file-upload-box {
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f8ff;
}

.file-upload-box:hover {
    border-color: var(--secondary-color);
    background: #ffe8e8;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}

.file-upload-box p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.file-upload-box small {
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .nav-tabs-custom .nav-link {
        min-width: 120px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .btn-group-tabs {
        flex-direction: column;
    }
}
