.appointment-section{ padding:80px 0; background:#f8f9fa; }

.fc .fc-highlight{ background:transparent !important; }

.fc .fc-daygrid-day-number{ padding:0 10px !important; }

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{ min-height:1.7rem; }

.fc .fc-daygrid-body-natural .fc-daygrid-day-events{ margin-bottom:10px; }

.fc .fc-button-primary{ background-color:#000 !important; box-shadow:none !important; border-color:#333 !important; }

.appointment-form{ padding:40px; border-radius:10px; }

.step{ display:none; }

.step.active{ display:block; }

.step-indicator{ display:flex; justify-content:center; margin-bottom:30px; }

.step-dot
{
    width:40px; height:40px; border-radius:50%; background:#ddd; display:flex;
    align-items:center; justify-content:center; margin:0 10px; color:white;
    font-weight:bold;
}

.step-dot.active{ background:#bd8e41; }

.step-dot.completed{ background:#bd8e41; }

.appointment-option
{
    border:2px solid #ddd; border-radius:10px; padding:20px;
    margin:15px 0; cursor:pointer; transition:all 0.3s ease;
}

.appointment-option:hover{ border-color:#bd8e41; transform:translateY(-2px); }

.appointment-option.selected{ border-color:#bd8e41; background:#fdfbf7; }

.appointment-option h5{ color:#bd8e41; margin-bottom:10px; }

.time-slot {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: #bd8e41;
    color: white;
    border-color: #bd8e41;
}

.time-slot.selected {
    background: #bd8e41;
    color: white;
    border-color: #bd8e41;
}

/* Service option boxes styling */
.service-option-box {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.service-option-box:hover {
    border-color: #bd8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(189, 142, 65, 0.2);
}

.service-option-box.selected {
    border-color: #bd8e41;
    background: #fdfbf7;
    box-shadow: 0 4px 12px rgba(189, 142, 65, 0.3);
}

.service-icon {
    font-size: 35px;
    color: #bd8e41;
    margin-right: 20px;
    margin-left: 20px;
    flex-shrink: 0;
}

.service-content h5 {
    color: #bd8e41;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-content p {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.service-content p strong {
    color: #333;
}

/* Responsive adjustments for service boxes */
@media (max-width: 768px) {
    .service-option-box {
        padding: 15px;
        margin-bottom: 15px;
    }

    .service-icon {
        font-size: 28px;
        margin-right: 15px;
    }

    .service-content h5 {
        font-size: 1.1em;
    }

    .service-content p {
        font-size: 0.85em;
    }
}

.btn-next,
.btn-prev {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    margin: 10px;
}

.btn-primary {
    background-color: #bd8e41;
    border-color: #bd8e41;
}

.btn-primary:hover {
    background-color: #a67a37;
    border-color: #a67a37;
}

.btn-secondary {
    background-color: #d3d4d6;
    border-color: #d3d4d6;
    color: #1b1b1b;
}

.btn-secondary:hover {
    background-color: #b8b9bb;
    border-color: #b8b9bb;
    color: #1b1b1b;
}

.btn-success {
    background-color: #000000;
    border-color: #000000;
}

.btn-success:hover {
    background-color: #bd8e41;
    border-color: #bd8e41;
}

.calendar-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #bd8e41;
    box-shadow: 0 0 0 0.2rem rgba(189, 142, 65, 0.25);
}

/* Form validation styles */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.summary-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #1b1b1b;
}

.summary-item span:last-child {
    color: #000000;
    font-weight: bold;
}

.summary-item#summaryTotal span:last-child {
    color: #bd8e41;
    font-size: 18px;
}

.appointment-section h2 {
    color: #bd8e41;
}

.appointment-section h4 {
    color: #303030;
}

.text-muted {
    color: #666 !important;
}

/* Calendar Selection Styling */
.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(189, 142, 65, 0.1) !important;
}

.fc .fc-daygrid-day:hover {
    background-color: rgba(189, 142, 65, 0.05) !important;
    cursor: pointer;
}

.fc .fc-daygrid-day.fc-day-selected {
    background-color: rgba(189, 142, 65, 0.2) !important;
}

.selected-date {
    background-color: #bd8e41 !important;
    border-color: #bd8e41 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    position: relative !important;
}

.selected-date::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #bd8e41 !important;
    color: #ffffff !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid #ffffff !important;
}

.fc .fc-daygrid-day-number {
    transition: all 0.3s ease;
}

.fc .fc-daygrid-day-number:hover {
    transform: scale(1.1);
}

/* Mobile Calendar Touch Improvements */
.fc .fc-daygrid-day {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(189, 142, 65, 0.2) !important;
}

.fc .fc-daygrid-day:active {
    background-color: rgba(189, 142, 65, 0.2) !important;
}

.fc .fc-daygrid-day.fc-day-selected {
    background-color: rgba(189, 142, 65, 0.3) !important;
}

/* Ensure calendar is touch-friendly */
.fc {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.fc .fc-daygrid-day-number {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Calendar Responsive Fixes */
.fc .fc-button-primary {
    background-color: #bd8e41 !important;
    border-color: #bd8e41 !important;
    box-shadow: none !important;
}

.fc .fc-button-primary:hover {
    background-color: #a67a37 !important;
    border-color: #a67a37 !important;
}

.fc .fc-button-primary:focus {
    background-color: #a67a37 !important;
    border-color: #a67a37 !important;
    box-shadow: 0 0 0 0.2rem rgba(189, 142, 65, 0.25) !important;
}

.fc .fc-toolbar-title {
    color: #1b1b1b !important;
    font-weight: bold !important;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus,
.btn-check:focus+.btn-success,
.btn-success:focus {
    color: inherit;
    background-color: inherit;
    border-color: inherit;
    box-shadow: none !important;
}

.fc .fc-daygrid-event {
    display: contents;
}

.fc-button-group {
    gap: 3px;
}

.fc-button-group button {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 10px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    margin: 0 2px;
}

/* Mobile Calendar Selection Fixes */
@media (max-width: 767px) {
    .fc .fc-daygrid-day {
        min-height: 45px !important;
    }

    .fc .fc-daygrid-body-natural .fc-daygrid-day-events {
        margin-bottom: 3px;
    }



    .fc .fc-daygrid-day-number {
        font-size: 16px !important;
        padding: 5px 10px !important;
        line-height: 1.2 !important;
    }

    .fc .fc-daygrid-day:hover {
        background-color: rgba(189, 142, 65, 0.1) !important;
    }

    .selected-date {
        font-size: 14px !important;
        border-radius: 6px !important;
    }

    .selected-date::after {
        width: 24px !important;
        height: 24px !important;
        font-size: 16px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .fc .fc-daygrid-day.fc-day-today {
        background-color: rgba(189, 142, 65, 0.15) !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .fc .fc-daygrid-day {
        min-height: 50px !important;
    }

    .fc .fc-daygrid-day-number {
        padding: 0 10px !important;
        font-size: 16px !important;
    }

    .fc .fc-daygrid-day:active {
        background-color: rgba(189, 142, 65, 0.2) !important;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 991px) {
    .appointment-section {
        padding: 60px 0;
    }

    .appointment-form {
        padding: 30px;
    }

    .step-indicator {
        margin-bottom: 25px;
    }

    .step-dot {
        width: 35px;
        height: 35px;
        margin: 0 8px;
        font-size: 14px;
    }

    .appointment-option {
        padding: 15px;
        margin: 10px 0;
    }

    .time-slot {
        padding: 8px;
        margin: 3px;
        font-size: 14px;
    }

    .btn-next,
    .btn-prev {
        padding: 10px 25px;
        margin: 8px;
        font-size: 14px;
    }

    .calendar-container {
        padding: 15px;
    }

    .summary-card {
        padding: 15px;
    }

    .appointment-section h2 {
        font-size: 28px;
    }

    .appointment-section h4 {
        font-size: 20px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .appointment-section {
        padding: 40px 0;
    }

    .appointment-form {
        padding: 20px;
        margin: 0 15px;
    }

    .step-indicator {
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .step-dot {
        width: 30px;
        height: 30px;
        margin: 0 5px 10px;
        font-size: 12px;
    }

    .appointment-option {
        padding: 15px;
        margin: 10px 0;
    }

    .appointment-option .row {
        flex-direction: column;
    }

    .appointment-option .col-md-8,
    .appointment-option .col-md-4 {
        width: 100%;
        margin-bottom: 15px;
    }

    .time-slot {
        padding: 8px 6px;
        margin: 3px;
        font-size: 13px;
        display: inline-block;
        min-width: 60px;
    }

    .btn-next,
    .btn-prev {
        padding: 10px 20px;
        margin: 5px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
    }

    .btn-success {
        width: 100%;
        max-width: 250px;
    }

    .calendar-container {
        padding: 10px;
        margin: 0 -10px;
    }

    .summary-card {
        padding: 15px;
    }



    .summary-item {
        flex-direction: column;
        text-align: center;
    }

    .summary-item span:first-child {
        margin-bottom: 5px;
    }

    .appointment-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .appointment-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .text-center.mt-4 {
        margin-top: 20px !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .appointment-form {
        padding: 15px 0;
        margin: 0 0px;
    }

    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 11px;
        margin: 0 3px 8px;
    }

    .time-slot {
        padding: 6px 4px;
        margin: 2px;
        font-size: 12px;
        min-width: 50px;
    }

    .btn-next,
    .btn-prev {
        padding: 8px 15px;
        font-size: 13px;
        max-width: 150px;
    }

    .btn-success {
        max-width: 200px;
        font-size: 16px;
    }

    .appointment-section h2 {
        font-size: 22px;
    }

    .appointment-section h4 {
        font-size: 16px;
    }

    .summary-card {
        padding: 12px;
    }

    .calendar-container {
        padding: 8px;
    }
}

/* Calendar Responsive Adjustments */
@media (max-width: 767px) {
    .fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-toolbar-chunk {
        text-align: center;
    }

    .fc-prev-button,
    .fc-next-button {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .fc-toolbar-title {
        font-size: 18px !important;
    }

    .fc-daygrid-day {
        min-height: 40px;
    }

    .fc-daygrid-day-number {
        font-size: 14px;
        padding: 4px;
    }
}

/* Form Layout Responsive */
@media (max-width: 767px) {
    .form-row .col-md-6 {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-control {
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 80px;
    }
}

/* Button Group Responsive */
@media (max-width: 767px) {
    .text-center.mt-4 .btn {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 250px;
    }
}

/* Summary Card Responsive */
@media (max-width: 767px) {
    .summary-item {
        padding: 8px 0;
    }

    .summary-item strong {
        font-size: 14px;
    }

    .summary-item span:last-child {
        font-size: 14px;
    }

    .summary-item#summaryTotal span:last-child {
        font-size: 16px;
    }
}