/* General Body and Container Styles */
body {
    background: #f8f9fa; /* Light background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-title {
    color: #007bff; /* Primary clinic color */
    font-weight: 700;
}

/* Main Form Container */
#msform {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Progress Bar/Steps */
.mainsteps {
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-bottom: 20px;
}

.mainsteps::before {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: #dee2e6; /* Light line */
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.step {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    position: relative;
    flex-grow: 1;
    z-index: 1;
}

.step::before {
    content: attr(data-step);
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: #adb5bd;
    display: block;
    margin: 0 auto 10px auto;
    color: #ffffff;
    font-weight: bold;
    border: 3px solid #ffffff;
    transition: background-color 0.3s, border-color 0.3s;
}

.step.active::before {
    background: #007bff; /* Blue active circle */
    border-color: #cce5ff;
}

.step.active {
    color: #007bff;
    font-weight: 600;
}


/* Fieldsets (Steps) */
.step-content {
    display: none; /* Hide all steps initially, shown by JS */
}
#step_1_section {
    display: block; /* Show the first step */
}

.fs-title {
    font-size: 24px;
    text-transform: uppercase;
    color: #343a40;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

/* Form Elements */
.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.schedule-boxtext textarea,
.iframe_section input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.schedule-boxtext textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.action-button,
.action-button-previous,
.action-button-submit,
.action-button-skip {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.action-button:hover, .action-button-submit:hover {
    background: #0056b3;
}

.action-button-previous {
    background: #6c757d;
}

.action-button-previous:hover {
    background: #5a6268;
}

.action-button-skip {
    background: #ffc107;
    color: #343a40;
    float: right;
}

.action-button-skip:hover {
    background: #e0a800;
}

/* Step 3 - Scheduling Specifics */
.schedule-mockup {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-greentext {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 15px;
}

.calendar-placeholder {
    height: 100px;
    line-height: 100px;
    border: 1px dashed #6c757d;
    border-radius: 5px;
    color: #6c757d;
    font-size: 14px;
}

.fs-heading-step-3 {
    font-weight: bold;
    margin-top: 15px;
    color: #343a40;
}

/* Step 4 - Checkboxes */
.checkform-group {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.checkform-group input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}