:root {
--primary-color: #008a9a;
--primary-light: #7ebac4;
--secondary-color: #f8b400;
--dark-color: #333;
--light-color: #f5f5f5;
}

body {
font-family: 'Tajawal', sans-serif;
background-color: var(--light-color);
color: var(--dark-color);
transition: background-color 0.5s ease;
}

body.dialysis-bg {
background-color: #e6f7ff; /* Light blue background */
}

body.transplant-bg {
background-color: #e6ffed; /* Light green background */
}

.header-img {
max-width: 100%;
height: 100px;
width: auto;
object-fit: contain;
}

.main-project-title {
color: var(--dark-color);
font-weight: 700;
font-size: 1.6rem;
margin-top: 150px;
margin-bottom: 10px;
}

/* NAV */
.navbar {
width: 100%;
transition: all 0.5s ease;
padding: 10px 0;
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}

.navbar.scrolled {
padding: 10px 0;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
height: 100px;
transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
height: 50px;
}

.nav-link {
font-weight: 600;
margin: 0 10px;
position: relative;
color: var(--dark-color);
transition: all 0.3s ease;
}

.nav-link::after {
display: none;
}

.nav-link:hover,
.nav-link.active {
color: var(--primary-color);
}

.nav-link:hover::after {
width: 100%;
right: auto;
left: 0;
}

/* Selection Screen Styles */
#patientTypeSelection {
min-height: 30vh;
display: flex;
align-items: center;
}

.selection-card {
cursor: pointer;
border: 2px solid var(--primary-light);
border-radius: 20px;
padding: 30px 20px;
text-align: center;
transition: all 0.3s ease;
background-color: white;
box-shadow: 0 5px 20px rgba(0,0,0,0.07);
height: 100%;
}

.selection-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0, 138, 154, 0.2);
border-color: var(--primary-color);
}

.selection-card h3 {
font-weight: 700;
color: var(--dark-color);
font-size: 1.5rem;
margin: 0;
}

.survey-container {
background-color: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 30px;
margin: 20px auto 30px;
position: relative;
z-index: 1;
max-width: 900px;
}

.form-step {
display: none;
}

.form-step.active {
display: block;
animation: fadeIn 0.5s ease;
}

.form-header {
text-align: center;
margin-bottom: 25px;
}

.form-header h2 {
color: var(--primary-color);
font-weight: 700;
margin-bottom: 10px;
}

#formTitle {
text-align: center;
color: var(--dark-color);
font-weight: 900;
margin-bottom: 25px;
border-bottom: 2px solid var(--primary-light);
padding-bottom: 15px;
}

.form-header p {
color: var(--dark-color);
font-size: 1rem;
}

.form-label {
font-weight: 500;
margin-bottom: 8px;
color: var(--dark-color);
display: block;
}

.form-control, .form-select {
padding: 12px 15px;
border-radius: 8px;
border: 1px solid #ddd;
width: 100%;
font-family: 'Tajawal', sans-serif;
}

.form-control:focus, .form-select:focus {
box-shadow: 0 0 0 0.25rem rgba(0, 138, 154, 0.25);
border-color: var(--primary-light);
outline: none;
}

.form-check-input:checked {
background-color: var(--primary-color);
border-color: var(--primary-color);
}

.form-check-label {
margin-right: 8px;
}

.date-select-group {
display: flex;
gap: 10px;
}

.btn-custom {
background-color: var(--primary-color);
color: white;
border: none;
padding: 12px 30px;
font-weight: 500;
border-radius: 50px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 138, 154, 0.3);
}

.btn-custom:hover {
background-color: #007181;
color: white;
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 138, 154, 0.4);
}

.btn-outline-custom {
border: 2px solid var(--primary-color);
color: var(--primary-color);
background: transparent;
padding: 10px 25px;
font-weight: 500;
border-radius: 50px;
transition: all 0.3s ease;
}

.btn-outline-custom:hover {
background-color: var(--primary-color);
color: white;
}

.progress-container {
margin-bottom: 30px;
}

.progress {
height: 8px;
border-radius: 5px;
background-color: #e9ecef;
}

.progress-bar {
background-color: var(--primary-color);
transition: width 0.6s ease;
}

.step-indicator {
display: flex;
justify-content: space-between;
margin-top: 15px;
}

.step {
text-align: center;
position: relative;
flex: 1;
}

.step-number {
width: 35px;
height: 35px;
background-color: #e9ecef;
color: #6c757d;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 8px;
font-weight: 700;
border: 3px solid #e9ecef;
font-size: 0.9rem;
}

.step.active .step-number {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-light);
}

.step.completed .step-number {
background-color: var(--primary-light);
color: white;
border-color: var(--primary-light);
}

.step-title {
font-size: 0.85rem;
color: #6c757d;
font-weight: 500;
}

.step.active .step-title {
color: var(--primary-color);
font-weight: 600;
}

.phone-input-group {
display: flex;
align-items: center;
direction: ltr;
}

.phone-input-group select {
flex: 0 0 100px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
height: 48px;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
font-size: 16px;
font-weight: bold;
background-color: #f8f9fa;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: none;
padding-right: 10px;
}

.phone-input-group input {
flex: 1;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
text-align: right;
direction: rtl;
}

.choices-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
margin-top: 15px;
}

.choice-item {
background-color: #f8f9fa;
padding: 10px 15px;
border-radius: 8px;
display: flex;
align-items: center;
border: 1px solid #eee;
}

.is-invalid {
border-color: #dc3545 !important;
}

.is-invalid:focus {
box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.choices.is-invalid .choices__inner {
border-color: #dc3545 !important;
}

.custom-notice {
background-color: #e6f3f5;
border-left: 5px solid var(--primary-color);
padding: 15px;
border-radius: 8px;
margin: 15px 0;
display: flex;
align-items: center;
gap: 15px;
font-size: 0.95rem;
}

.custom-notice i {
font-size: 1.5rem;
color: var(--primary-color);
}

.review-data strong {
font-weight: 600;
color: var(--dark-color);
}

.review-data .data-value {
font-size: 1rem;
color: var(--primary-color);
font-weight: 700;
word-break: break-word;
}

/*
.whatsapp-channel-btn {
border-radius: 50px;
padding: 12px 25px;
font-weight: 700;
box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
transition: all 0.3s ease;
}
*/
/*
.whatsapp-channel-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}
*/

footer {
  padding: 40px 0;
  text-align: center;
}

.whatsapp-channel-btn {
  position: relative;
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
  white-space: nowrap;
}

.whatsapp-channel-btn:hover {
transform: translateX(-50%) translateY(-3px);
box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}


/* Responsive Design */
@media (max-width: 768px) { /* TABLET: Medium screens (≤ 768px) */
.survey-container {
padding: 20px;
margin-top: 20px;
}
.header-img {
height: 80px;
}
.selection-card {
padding: 25px 15px;
}
.selection-card h3 {
font-size: 1.3rem;
}
.main-project-title {
font-size: 1.2rem;
line-height: 1.4;
}
.date-select-group {
flex-wrap: wrap;
}
.step-number {
width: 30px;
height: 30px;
font-size: 0.8rem;
border-width: 2px;
}
.step-title {
font-size: 0.7rem;
}
.choices-grid {
grid-template-columns: 1fr;
}
.review-data .col-md-6 {
flex: 0 0 100%;
max-width: 100%;
}
.form-label {
font-size: 0.95rem;
}
}

@media (max-width: 480px) { /* MOBILE: Small screens (≤ 480px) */
.step-title {
display: none;
}
.main-project-title {
font-size: 1.1rem;
}

.selection-card h3 {
font-size: 1.1rem;
}
.btn-custom, .btn-outline-custom {
padding: 10px 20px;
font-size: 0.9rem;
}
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}