/* -------------------- SLIDER STYLING -------------------- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 600px; /* Increased height for better visibility */
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Prev/Next Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    color: white;
    font-weight: bold;
    font-size: 26px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    border: none;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}
.next {
    right: 15px;
}

/* Dots/Indicators */
.slider-dots {
    text-align: center;
    margin-top: 10px;
}
.slider-dots span {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-dots .active {
    background-color: #0077b6;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
    .slide img {
        height: 300px;
    }
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 20px;
        line-height: 35px;
    }
}
@media (max-width: 480px) {
    .slide img {
        height: 220px;
    }
    .prev, .next {
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
    }
    .slider-dots span {
        height: 10px;
        width: 10px;
    }
}

/* Landscape orientation fixes for professional look */
@media (orientation: landscape) and (max-height: 500px) {
    .slide img {
        height: 40vh; /* Use viewport height for better fit in landscape */
        max-height: 300px; /* Cap at 300px to prevent too small */
    }
    .slider-container {
        margin: 1rem auto; /* Reduce margin in landscape */
    }
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 40px;
    }
}
@media (orientation: landscape) and (min-height: 501px) {
    .slide img {
        height: 50vh; /* Slightly taller for larger landscape screens */
        max-height: 400px;
    }
}

/* -------------------- FORM STYLING -------------------- */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-container {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.form-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    object-fit: cover;
}

form {
    flex: 1;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
    color: #bbb;
}

.progress-step.active {
    color: #0077b6;
    font-weight: bold;
}

.progress-step span {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border: 2px solid #bbb;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    background: #fff;
}

.progress-step.active span {
    border-color: #0077b6;
    background: #0077b6;
    color: #fff;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #0077b6;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

button.next-btn,
button.prev-btn,
button#pay-with-razorpay,
button#pay-with-phonepe {
    background-color: #0077b6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

button.next-btn:hover,
button.prev-btn:hover,
button#pay-with-razorpay:hover,
button#pay-with-phonepe:hover {
    background-color: #005f87;
}

button.prev-btn {
    background-color: #ccc;
    color: #333;
    margin-right: 1rem;
}

button.prev-btn:hover {
    background-color: #999;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.payment-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-note {
    font-size: 0.9rem;
    color: #666;
}

.symptom-result {
    margin-top: 1rem;
    font-weight: bold;
    color: #0077b6;
}



/* Header and Navigation Styling */
header {
    background-color: #0077b6;
    padding: 1rem 0;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
}

header ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: #90caf9;
}

/* Footer Styling */
footer {
    background-color: #0077b6;
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* -------------------- SLIDER STYLING -------------------- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 600px; /* Increased height for better visibility */
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Prev/Next Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    color: white;
    font-weight: bold;
    font-size: 26px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    border: none;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}
.next {
    right: 15px;
}

/* Dots/Indicators */
.slider-dots {
    text-align: center;
    margin-top: 10px;
}
.slider-dots span {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-dots .active {
    background-color: #0077b6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }
}

/* -------------------- MODERNIZED SYMPTOM TRACKER -------------------- */
.centered-card {
    max-width: 600px;
    margin: 2rem auto 3rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.centered-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0077b6;
}

.centered-card .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.centered-card label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.centered-card textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #0077b6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #005f87;
}

.symptom-result {
    margin-top: 1.5rem;
    font-weight: 600;
    color: #0077b6;
    min-height: 40px;
    font-size: 1.1rem;
}
