:root {
    --primary-color: #036169;
    --primary-dark: #024c52;
    --primary-light: #047a83;
    --primary-lighter: #e6f2f3;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    direction: rtl;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
}

/* Header Styles */
.registration-header {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 8px;
    background: var(--light-bg);
}

.header-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.header-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.registration-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px 40px 15px;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.02) 20px,
        rgba(255, 255, 255, 0.02) 40px
    );
}

.form-header > * {
    position: relative;
    z-index: 2;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.form-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.form-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    font-weight: 400;
}

.form-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.5;
}

.form-label i {
    margin-left: 8px;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 97, 105, 0.1);
    outline: none;
    background: white;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    cursor: pointer;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-register:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

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

.btn-register:focus {
    box-shadow: 0 0 0 3px rgba(3, 97, 105, 0.3);
    outline: none;
}

.btn-register:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 20px;
    margin-bottom: 24px;
    font-weight: 500;
    position: relative;
    border-left: 4px solid;
    box-shadow: var(--shadow);
}

.alert-header {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.alert-header strong {
    font-weight: 700;
}

.alert-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.alert-footer {
    font-size: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.alert-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.alert-footer a:hover {
    text-decoration: underline;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: var(--success-color);
}

.alert-warning {
    background-color: #fefce8;
    color: #a16207;
    border-left-color: var(--warning-color);
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.error-list {
    margin: 0;
    padding-right: 20px;
    list-style-type: disc;
}

.error-list li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Next Steps Card */
.next-steps-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.next-steps-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #0369a1;
}

.next-steps-header i {
    font-size: 20px;
    margin-left: 8px;
}

.next-steps-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.next-steps-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: #0ea5e9;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    color: #0369a1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-weight: 500;
    position: relative;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert .btn-close {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    opacity: 0.7;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Form Validation */
.invalid-feedback {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Remove form variations - use same color for all forms */
.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

/* Video URL field helper text */
.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

.form-text.text-muted {
    color: var(--text-muted) !important;
}

/* URL input specific styling */
input[type="url"].form-control {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 8s3-5.5 8-5.5S18 8 18 8s-3 5.5-8 5.5S2 8 2 8z'/%3e%3ccircle cx='10' cy='8' r='3'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

input[type="url"].form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23036169' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 8s3-5.5 8-5.5S18 8 18 8s-3 5.5-8 5.5S2 8 2 8z'/%3e%3ccircle cx='10' cy='8' r='3'/%3e%3c/svg%3e");
}

/* Button Styling for Add More */
.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Remove buttons for dynamic items */
.btn-outline-danger {
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-1px);
}

/* Row spacing in dynamic fields */
.initiative-item .row + .row,
.participation-item .row + .row {
    margin-top: 15px;
}

/* Dynamic item spacing */
.initiative-item + .initiative-item,
.participation-item + .participation-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Language item specific styling */
.language-item.row {
    align-items: center;
    gap: 15px;
}

.language-item .col-md-6 {
    margin-bottom: 0;
}

/* Requirements Section Styles */
.requirements-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.requirements-content {
    padding: 40px 30px;
    max-width: 100%;
}

.requirements-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.header-icon i {
    font-size: 32px;
    color: white;
}

.requirements-header h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.requirements-header p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.requirement-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.requirement-card:hover::before {
    transform: scaleY(1);
}

.requirement-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.requirement-card:hover .requirement-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.requirement-icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.requirement-card:hover .requirement-icon i {
    color: white;
}

.requirement-content h4 {
    color: var(--dark-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.requirement-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.confirmation-box {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.confirmation-content {
    margin-bottom: 24px;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-icon i {
    font-size: 24px;
    color: white;
}

.confirmation-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    text-align: right;
}

.confirmation-checkbox {
    opacity: 0;
    position: absolute;
}

.checkmark {
    min-width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.confirmation-checkbox:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.confirmation-checkbox:checked + .checkmark::after {
    display: block;
}

.label-text {
    color: var(--dark-color);
    font-weight: 500;
}

.btn-continue {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-continue:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-continue i {
    transition: transform 0.3s ease;
}

.btn-continue:hover:not(:disabled) i {
    transform: translateX(-4px);
}

/* User Information Review Section */
.user-info-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.user-info-header {
    text-align: center;
    margin-bottom: 24px;
}

.user-info-header h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-info-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.user-info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    margin-bottom: 6px;
}

.info-value {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--dark-color);
    min-height: 42px;
    display: flex;
    align-items: center;
}

.info-value:empty::before {
    content: 'غير محدد';
    color: var(--text-muted);
    font-style: italic;
}

.update-info-notice {
    background: var(--primary-lighter);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--dark-color);
    text-align: center;
}

.update-info-notice i {
    color: var(--primary-color);
}

.update-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.2s ease;
}

.update-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* City Selection Loading */
.city-loading {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    z-index: 10;
}

.city-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
}

/* Country Selection Loading */
.country-loading {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    z-index: 10;
}

.country-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
}

/* Select disabled state */
.form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Position relative for loading indicator */
.position-relative {
    position: relative;
}

/* Loading state for form elements */
.loading-state {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive Design for Requirements */
@media (max-width: 768px) {
    .requirements-content {
        padding: 30px 20px;
    }
    
    .requirements-header h3 {
        font-size: 24px;
    }
    
    .requirements-header p {
        font-size: 14px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .requirement-card {
        padding: 20px;
    }
    
    .confirmation-box {
        padding: 24px;
    }
    
    .confirmation-label {
        font-size: 14px;
        text-align: right;
    }
}

/* Responsive adjustments for user info */
@media (max-width: 768px) {
    .user-info-section {
        padding: 20px 15px;
        margin-bottom: 24px;
    }
    
    .user-info-card {
        padding: 20px 15px;
    }
    
    .info-item {
        margin-bottom: 16px;
    }
    
    .update-info-notice {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .requirements-content {
        padding: 20px 15px;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .header-icon i {
        font-size: 24px;
    }
    
    .requirements-header h3 {
        font-size: 20px;
    }
    
    .requirement-card {
        padding: 16px;
    }
    
    .requirement-icon {
        width: 50px;
        height: 50px;
    }
    
    .requirement-icon i {
        font-size: 20px;
    }
    
    .confirmation-box {
        padding: 20px;
    }
    
    .btn-continue {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .user-info-header h3 {
        font-size: 18px;
    }
    
    .user-info-header p {
        font-size: 13px;
    }
    
    .info-value {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .info-label {
        font-size: 13px;
    }
}

/* Loading state */
.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-register .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-left: 8px;
}

/* Focus visible for accessibility */
.btn-register:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Tab Navigation Styling */
.nav-pills {
    margin-bottom: 32px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.nav-pills .nav-item {
    margin: 0 4px;
}

.nav-pills .nav-link {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-pills .nav-link:hover:not(.active) {
    background: rgba(3, 97, 105, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(3, 97, 105, 0.3);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active i {
    color: white;
}

.nav-pills .nav-link i {
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Tab Content Styling */
.tab-content {
    background: transparent;
    border: none;
    padding: 0;
}

.tab-pane {
    padding: 20px 0;
}

/* Card spacing within tabs */
.tab-pane .card + hr {
    margin: 32px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.tab-pane .card {
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tab-pane .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tab-pane .card-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 24px;
}

.tab-pane .card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.tab-pane .card-body {
    padding: 24px;
}

/* Tab Navigation Buttons */
.d-flex.justify-content-between {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    gap: 16px;
}

.btn-outline-secondary {
    background: white;
    border: 2px solid #6b7280;
    color: #6b7280;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    text-decoration: none;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary:focus {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 2px solid var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 97, 105, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(3, 97, 105, 0.3);
    outline: none;
    color: white;
}

/* Personal tab navigation button */
#personal-navigation {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

#personal-navigation .btn-primary {
    margin-left: auto;
    min-width: 120px;
}

/* Button icons */
.btn-outline-secondary i,
.btn-primary i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-outline-secondary:hover i[class*="arrow-right"] {
    transform: translateX(2px);
}

.btn-primary:hover i[class*="arrow-left"] {
    transform: translateX(-2px);
}

/* Submit button in media tab */
.btn-register {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: 2px solid var(--success-color);
    color: white;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    text-decoration: none;
}

.btn-register:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, var(--success-color));
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-register:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    outline: none;
    color: white;
}

.btn-register:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button text and loading states */
.btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-register .spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
}

/* Responsive button styling */
@media (max-width: 768px) {
    .d-flex.justify-content-between {
        gap: 12px;
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .btn-outline-secondary,
    .btn-primary {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
        flex: 1;
    }
    
    .btn-register {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 48px;
    }
    
    #personal-navigation {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    #personal-navigation .btn-primary {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-outline-secondary,
    .btn-primary,
    .btn-register {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}
