/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Bar */
.navbar {
    background-color: #fff;
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo img {
    height: 85px;
    vertical-align: middle;
}

.navbar .nav-links {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li {
    display: inline-block;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #e72785;
}

/* Progress Bar */
#progress-container {
    width: 100%;
    background-color: #e0e0e0;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar {
    height: 20px;
    background-color: #4caf50;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    width: 50%; /* Default for Step 1 */
    transition: width 0.3s ease-in-out;
}

/* Main Container */
.program-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px auto;
    gap: 20px;
}

/* Operating Hours */
.program-hours {
    flex: 1;
    background-color: #e72785;
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.program-hours .icon {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.program-hours h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.program-hours table {
    width: 100%;
    color: white;
    border-collapse: collapse;
}

.program-hours table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.program-hours table tr:last-child td {
    border-bottom: none;
}

/* Appointment Form */
.appointment-form {
    flex: 2;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.appointment-form h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #e72785;
    text-transform: uppercase;
}

.appointment-form h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #2196F3;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group-addon {
    background-color: #2196F3;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2196F3;
}

textarea {
    resize: none;
    height: 100px;
}

#location,
#doctor,
#specialization {
    background-color: #f9f9f9;
}

.btn-next,
button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    background-color: #2196F3;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-next:hover,
button[type="submit"]:hover {
    background-color: #e72785;
}

/* Footer */
footer {
    background-color: #2d3840;
    color: white;
    padding: 40px 20px;
    margin-top: 30px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 200px;
}

footer h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e72785;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

footer ul li i {
    margin-right: 10px;
    color: #e72785;
    font-size: 1.2rem;
}

footer ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #e72785;
}

/* Social Media Icons */
footer .social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

footer .social-media li {
    list-style: none;
}

footer .social-media li a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

footer .social-media li a:hover {
    transform: scale(1.1);
    color: #e72785;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

/* Error Message Box */
#error-box {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Highlight Invalid Fields */
input.error,
select.error,
textarea.error {
    border-color: #f44336 !important;
    background-color: #ffebee;
}

/* Loading Spinner */
#loading-spinner {
    display: none;
    margin: 20px auto;
    text-align: center;
}
#loading-spinner i {
    font-size: 2rem;
    color: #4caf50;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-container {
        flex-direction: column;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    footer .footer-container {
        flex-direction: column;
    }
}
