/* Custom Styles for Umre Application Form */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --mardin-blue: #1e3a8a;
    --mardin-gold: #d4af37;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff;
    color: #333;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--mardin-blue) 0%, #2a4ba0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(to right, var(--mardin-blue), #3a5fc5);
    color: white;
    border-bottom: none;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title h4 {
    color: var(--mardin-blue);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--mardin-gold);
    border-radius: 2px;
}

/* Form Controls */
.form-control,
.form-select {
    border: 2px solid #e1e5f2;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mardin-blue);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.form-control-lg,
.form-select-lg {
    padding: 15px 20px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Checkboxes */
.form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.25em;
    border: 2px solid #ced4da;
}

.form-check-input:checked {
    background-color: var(--mardin-blue);
    border-color: var(--mardin-blue);
}

.form-check-label {
    font-size: 1rem;
    padding-left: 10px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--mardin-blue) 0%, #2a4ba0 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a4ba0 0%, var(--mardin-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, var(--success-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Badges */
.badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    font-size: 1rem;
}

/* File Inputs */
.form-control[type="file"] {
    padding: 15px 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--mardin-gold);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white !important;
    transform: translateX(8px);
}

.footer-link:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    /* Mavi olmasını engellemek için */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon i {
    font-size: 1.2rem;
    color: white !important;
}

.social-icon:hover {
    background: var(--mardin-gold);
    border-color: var(--mardin-gold);
    color: var(--mardin-blue) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.social-icon:hover i {
    color: var(--mardin-blue) !important;
}

.social-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.social-icon:hover img {
    filter: none;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--mardin-gold);
    bottom: -8px;
    left: 0;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }

    .section-title h4 {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .d-md-flex {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .justify-content-md-between {
        justify-content: center !important;
    }

    .justify-content-md-end {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    header .display-6 {
        font-size: 1.5rem;
    }

    header .lead {
        font-size: 0.9rem;
    }

    .card-header h2 {
        font-size: 1.25rem;
    }

    .section-title h4 {
        font-size: 1.1rem;
    }

    .form-control-lg,
    .form-select-lg {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .btn-lg {
        width: 100%;
    }
}

/* Animation for form elements */
.form-control,
.form-select,
.form-check-input {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-control:nth-child(1) {
    animation-delay: 0.1s;
}

.form-control:nth-child(2) {
    animation-delay: 0.2s;
}

.form-control:nth-child(3) {
    animation-delay: 0.3s;
}

.form-control:nth-child(4) {
    animation-delay: 0.4s;
}

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

/* Validation Styles */
.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Success Message */
.alert-success {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(25, 135, 84, 0.2);
}

.alert-success h4 {
    color: var(--success-color);
}