.form-group input[type="date"] {
    position: relative;
    padding-right: 40px;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23008230" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat right 12px center;
    background-size: 20px 20px;
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-width: 350px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 5px;
}

.calendar-nav button {
    padding: 4px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.calendar-nav button:hover {
    background: #008230;
    color: white;
    border-color: #008230;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 5px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 11px;
    padding: 5px 2px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    background: white;
    padding: 2px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    border-color: #008230;
}

.calendar-day.disabled {
    color: #666;
    cursor: not-allowed;
    font-weight: 600;
    background:
        linear-gradient(to top left,
            transparent 0%,
            transparent calc(50% - 1px),
            rgba(217, 83, 79, 0.5) calc(50% - 1px),
            rgba(217, 83, 79, 0.5) calc(50% + 1px),
            transparent calc(50% + 1px),
            transparent 100%),
        #fafafa;
}

.calendar-day.today.disabled {
    background:
        linear-gradient(to top left,
            transparent 0%,
            transparent calc(50% - 1px),
            rgba(217, 83, 79, 0.5) calc(50% - 1px),
            rgba(217, 83, 79, 0.5) calc(50% + 1px),
            transparent calc(50% + 1px),
            transparent 100%),
        #e7f5ec;
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.calendar-day.today:not(.disabled):not(.selected) {
    background: #e7f5ec;
    font-weight: 600;
}

.calendar-day.selected {
    background: #008230;
    color: white;
    border-color: #008230;
    font-weight: 600;
}

.calendar-day.weekend {
    background: #f9f9f9;
}

.selected-date-display {
    background: #e7f5ec;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 4px solid #008230;
    font-size: 14px;
}

.selected-date-display strong {
    color: #008230;
}

.selected-date-display button {
    margin-left: 10px;
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Time Selection Layout */
.appointment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.time-selection-container {
    /* background: white; */
    /* border: 1px solid #ddd; */
    /* border-radius: 8px; */
    /* padding: 15px; */
}

.time-selection-container h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    /* max-height: 400px; */
    /* overflow-y: auto; */
    padding: 5px;
}

.time-slot {
    padding: 8px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.time-slot:hover {
    background: #f0f0f0;
    border-color: #008230;
}

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

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f9f9f9;
}