/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #3F1536;
    background: #ffffff;
}

/* Form Container Styles */
.form-container {
    min-height: 100vh;
    background: #ffffff;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Background Pattern - Subtle dots */
.form-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #e9d5ff 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.4;
    z-index: 0;
}

.form-container::after {
    content: '';
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, #e9d5ff 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.3;
    z-index: 0;
}

/* Form Card */
.form-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Form Header */
.form-header {
    background: #ffffff;
    color: #3F1536;
    padding: 0 0 40px 0;
    text-align: center;
    border: none;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #3F1536;
}

.form-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Tab Navigation - Minimal Design */
.form-tabs-arzyabi {
    background: #ffffff;
    border: none;
    padding: 0 0 30px 0;
    margin-bottom: 40px;
    text-align: center;
}

.nav-tabs-arzyabi {
    border: none;
    display: flex;
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
    align-items: center;
}

.nav-item-arzyabi {
    flex: 1;
}

.nav-link-arzyabi {
    border: 2px solid #3F1536;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #3F1536;
    background: #ffffff;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
    width: 95%;
}

.nav-link-arzyabi:hover {
    background: #f8f5ff;
    color: #3F1536;
    border: 2px solid #3F1536;
}

.nav-link-arzyabi.active {
    background: #3F1536;
    color: #ffffff;
    border: 2px solid #3F1536;
}

/* Tab Content */
.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
}

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

/* Form Sections - Minimal Spacing */
.form-section, .birthday-section, .conditions-section {
    margin-bottom: 35px;
    background: #ffffff;
    border: none;
    padding: 0;
}

.section-title {
    color: #3F1536;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
}

.section-title::after {
    display: none;
}

/* Form Groups - Clean Layout */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3F1536;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Form Controls - Minimal Styling */
.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D3B0D9;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #3F1536;
}

/* Checkbox/Radio Button Styling */
.checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #3F1536;
    position: relative;
    padding-left: 30px;
    user-select: none;
    min-height: 24px;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

/* Question and Checkbox Layout */
.checkbox-question {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    min-height: 40px;
    position: relative;
}

.checkbox-question .question-label {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: #3F1536;
    margin-bottom: 0;
    padding-top: 0;
    line-height: 1.4;
    padding-left: 15px;
}

.checkbox-question .checkbox-group {
    flex: 0 0 auto;
    min-width: 140px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.checkbox-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 2px solid #D3B0D9;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-item:hover input ~ .checkmark {
    border-color: #6A3279;
    background-color: #f8f5ff;
}

.checkbox-item input:checked ~ .checkmark {
    background-color: #3F1536;
    border-color: #3F1536;
}

.checkbox-item input:checked ~ .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input:required:invalid ~ .checkmark {
    border-color: #dc3545;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #6A3279;
    box-shadow: 0 0 0 2px rgba(106, 50, 121, 0.1);
}

.form-control::placeholder {
    color: #999;
    opacity: 0.8;
}

/* Birthday Inputs - Clean Layout */
.birthday-inputs {
    display: flex;
    gap: 15px;
    align-items: end;
}

.birthday-inputs .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* File Upload - Minimal Design */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 20px;
    border: 1px solid #D3B0D9;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #3F1536;
    font-weight: 400;
    font-size: 0.9rem;
}

.file-upload-label:hover {
    border-color: #6A3279;
    background: #faf9ff;
}

/* Conditions Section - Clean Background */
.conditions-section {
    background: #faf9ff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #D3B0D9;
    margin-top: 30px;
}

.conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conditions-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: #3F1536;
    font-size: 0.9rem;
    line-height: 1.5;
}

.conditions-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #3F1536;
    border-radius: 50%;
}

/* Submit Section - Centered */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding: 0;
}

.submit-button {
    background: #3F1536;
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.submit-button:hover {
    background: #4a1f4a;
    transform: none;
    box-shadow: none;
}

.submit-button:active {
    transform: none;
}

.submit-button.loading {
    background: #6A3279;
    cursor: not-allowed;
}

/* Success Message - Clean Design */
.success-message {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.success-message h4 {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.success-message p {
    color: #388e3c;
    margin: 0;
    font-size: 0.9rem;
}

/* Validation Styles - Minimal */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    clear: both;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

/* Row and Column Layout - Clean Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-3 {
    flex: 0 0 25%;
    padding: 0 10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    padding: 0 10px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 0 10px;
}

/* Input Group Styles */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #3F1536;
    text-align: center;
    white-space: nowrap;
    background-color: #f8f9fa;
    border: 1px solid #D3B0D9;
    border-radius: 6px 0 0 6px;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 6px 6px 0;
    border-left: 0;
}

/* Bootstrap Tab Classes */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Tab Pane Classes */
.tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* Form Label Styles */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #3F1536;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .form-container {
        padding: 40px 15px;
    }
    
    .form-card {
        max-width: 100%;
    }
    
    .form-header {
        padding: 0 0 30px 0;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .form-tabs-arzyabi {
        padding: 0 0 25px 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .nav-tabs-arzyabi {
        max-width: 100%;
    }
    
    .nav-link-arzyabi {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 0;
    }
    
    .birthday-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .birthday-inputs .form-group {
        flex: none;
    }
    
    .conditions-section {
        padding: 20px;
        margin-top: 25px;
    }
    
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        margin-bottom: 0;
    }
    
    .form-section, .birthday-section, .conditions-section {
        margin-bottom: 25px;
    }
    
    .checkbox-group {
        gap: 15px;
        flex-direction: row;
    }
    
    .checkbox-item {
        padding-left: 25px;
        font-size: 0.85rem;
        min-height: 20px;
    }
    
    .checkmark {
        height: 16px;
        width: 16px;
    }
    
    .checkbox-question {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        min-height: auto;
    }
    
    .checkbox-question .question-label {
        text-align: right;
        margin-bottom: 10px;
    }
    
    .checkbox-question .checkbox-group {
        min-width: auto;
        align-self: flex-start;
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }
}

/* Animation Classes - Subtle */
.fade-in {
    animation: fadeInUp 0.4s ease forwards;
}

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

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

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

/* Remove all shadows and extra effects for minimal design */
.form-card,
.form-section,
.form-control,
.form-select,
.submit-button,
.nav-link-arzyabi {
    box-shadow: none !important;
}

/* Ensure clean typography */
.form-title,
.section-title,
.form-group label,
.form-control,
.form-select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Minimal focus states */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 2px rgba(106, 50, 121, 0.1) !important;
}
