/* Custom Styles for Medical Portal with Bootstrap */

:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Custom Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-icon {
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

/* Custom Progress Bar */
.progress {
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-dots {
    justify-content: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Main Content Enhancements */
.main-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.welcome-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.info-card i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.1);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.35);
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.btn-outline-secondary {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Section Styles */
.form-section {
    /* max-width: 600px; */
    margin: 0 auto;
}

.question-block {
    text-align: center;
}

.question-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Custom Select Styling */
.input-wrapper {
    position: relative;
    display: inline-block;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--dark-color);
    border-radius: 0;
    padding: 0.75rem 2rem 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
    box-shadow: 0 2px 0 var(--primary-color);
}

.form-select:hover {
    border-bottom-color: var(--primary-color);
}

/* Radio Button Styling */
.radio-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
}

.btn-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.btn-check:checked+.btn-outline-dark {
    background-color: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.btn-outline-dark {
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    background: transparent;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-outline-dark:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Back Button Styling */
.btn-outline-dark.back-btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-dark.back-btn:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateX(-5px);
}

/* Next Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.35);
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .welcome-icon {
        font-size: 3rem !important;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .progress-dots {
        justify-content: flex-start;
    }

    .radio-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .radio-option .btn {
        width: 200px;
    }

    .form-select {
        width: 250px !important;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 2rem !important;
    }

    .welcome-subtitle {
        font-size: 1.25rem !important;
    }

    .info-card {
        padding: 1.5rem !important;
    }

    .question-title {
        font-size: 1.5rem !important;
    }

    .form-select {
        width: 200px !important;
        font-size: 1rem;
    }

    .radio-option .btn {
        /*width: 150px;*/
        padding: 0.75rem 1rem;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .btn {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
    }
}

.form-control:focus {
    box-shadow: none !important;
    border: 0;
}

.checkbox-options .form-check-label {
    display: block;
    position: relative;
    font-weight: 400;
    font-size: 18px;
    padding: 10px;
    margin: 5px 0px;
    height: auto;
    z-index: 9;
    cursor: pointer;
    text-align: left;
    padding-left: 55px;
    right: 23px;
}

.checkbox-options .form-check {
    color: #636363;
    position: relative;
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 7px;

}

.checkbox-options .form-check-input {
    position: absolute;
    left: 34px;
    top: 13px;
    padding: 9px
}

/* radio-options */
.radio-options .form-check-label {
    display: block;
    position: relative;
    font-weight: 400;
    font-size: 18px;
    padding: 10px;
    margin: 5px 0px;
    height: auto;
    z-index: 9;
    cursor: pointer;
    text-align: left;
    padding-left: 55px;
    right: 23px;
    width: 100%;
}

.radio-options .form-check {
    color: #636363;
    position: relative;
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-around;

}

.radio-options .form-check-input {
    position: absolute;
    left: 34px;
    top: 13px;
    padding: 9px
}