/* Main Container */
.prds-appointment-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Form Title */
.prds-form-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: #1e1e1e;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* Form Elements */
.prds-form-group {
    margin-bottom: 20px;
}

.prds-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.prds-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

.prds-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3338;
    font-size: 14px;
}

/* Required field asterisk styling */
.prds-form-group label .required {
    color: #ff0000;
    margin-left: 2px;
    font-weight: bold;
}

.prds-form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3338;
    background-color: #fff;
    background-image: none;
    border: 1px solid #dcdcdc; /* Lighter border color */
    border-radius: 4px;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.prds-form-control:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

/* Textarea */
.prds-form-control[rows="4"] {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.prds-submit-wrapper {
    margin-top: 30px;
    text-align: center;
}

.prds-submit-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    background-color: #209e8c; /* Green/Turquoise color from image */
    color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prds-submit-btn:hover, 
.prds-submit-btn:focus {
    background-color: #1a8475;
    color: #fff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    outline: none;
}

/* Messages */
.prds-message-container {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
}

.prds-message-container.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.prds-message-container.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.prds-success-message {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

/* Select Styling */
select.prds-form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231a1a1a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto;
    padding-right: 2.5em;
}

/* --- Date/Time Picker Custom Styling --- */

.prds-date-time-picker {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.prds-date-picker,
.prds-time-picker {
    flex: 1;
    min-width: 250px; /* Ensure minimum width for readability */
}

.prds-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3338;
}

/* Calendar Styles */
.prds-calendar {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.prds-calendar-month {
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
}

.prds-calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #209e8c;
    padding: 5px;
    line-height: 1;
}

.prds-calendar-nav:hover {
    color: #1a8475;
}

.prds-calendar-day-names,
.prds-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.prds-calendar-day-name {
    font-weight: 500;
    color: #8c8f94;
    padding: 5px 0;
}

.prds-calendar-cell {
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.1s;
    line-height: 1;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prds-calendar-cell.empty {
    cursor: default;
    background: none;
}

.prds-calendar-cell.day {
    color: #2c3338;
}

.prds-calendar-cell.day:hover:not(.selected):not(.disabled) {
    background-color: #f0f0f0;
}

.prds-calendar-cell.selected {
    background-color: #209e8c;
    color: #fff;
    font-weight: 600;
}

.prds-calendar-cell.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Time Grid Styles */
.prds-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.prds-time-slot {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    color: #2c3338;
    padding: 6px 5px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.1s, border-color 0.1s, color 0.1s;
}

.prds-time-slot:hover:not(.selected) {
    background-color: #f0f0f0;
    color: #000;
}

.prds-time-slot.selected {
    background-color: #209e8c;
    color: #fff;
    border-color: #209e8c;
    font-weight: 500;
}

.prds-time-slot:disabled {
    background-color: #f9f9f9;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 600px) {
    .prds-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .prds-form-row {
        margin: 0;
    }
    
    .prds-form-group {
        margin-bottom: 15px;
    }
    
    .prds-appointment-form-container {
        padding: 15px;
    }
}