/* --- Customer Material Note Styles --- */

#customer_material_note {
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    color: var(--text-color-primary);
    font-family: 'Inter', sans-serif;
}

#customer_material_note p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

#customer_material_note strong {
    color: var(--accent-color);
    font-weight: 700;
}

#additional_material_details {
    margin-top: 30px;
    margin-bottom: 30px;
}

#additional_material_details label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

#additional_material_details textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color-primary);
    resize: vertical;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

#additional_material_details textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Styling for the date picker calendar */
.flatpickr-calendar {
    font-family: Arial, sans-serif;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* A nice, subtle shadow for a white box */
  }
  
  /* Style for individual day cells */
  .flatpickr-day {
    color: #444; /* Dark gray text, which is readable on white */
    border-radius: 50%; /* Makes the days circular */
  }
  
  /* Base style for available dates */
  .flatpickr-day:not(.flatpickr-disabled):not(.selected):not(.today) {
    background-color: #d1ffd1; /* Light green for available days */
    border: 1px solid #a8e8a8;
  }
  
  /* Hover effect for available dates */
  .flatpickr-day:not(.flatpickr-disabled):hover {
    background-color: #8ac98a;
    color: #fff; /* White text on hover */
  }
  
  /* Style for disabled dates (including past dates and fetched unavailable dates) */
  .flatpickr-day.flatpickr-disabled {
    background-color: #ffcccc; /* Light red for unavailable/disabled days */
    color: #a82e2e;
    text-decoration: line-through;
    cursor: not-allowed;
    border: 1px solid #e8a8a8;
  }
  
  /* Style for the current day ("today") */
  .flatpickr-day.today {
    background-color: #4a90e2; /* Blue to highlight today */
    color: #fff;
    font-weight: bold;
  }
  
  /* Style for selected date */
  .flatpickr-day.selected {
    background-color: #2e8b57; /* Dark green for the selected day */
    color: #fff;
    font-weight: bold;
    border-color: #2e8b57;
  }
  
  /* Styling the hour and minute inputs */
  .flatpickr-hour,
  .flatpickr-minute,
  .flatpickr-am-pm {
    border: 1px solid #ddd;
    background-color: #fff; /* White background for the time inputs */
    color: #444; /* Dark text for readability */
    border-radius: 4px;
    padding: 5px;
    font-size: 16px;
    text-align: center;
  }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) { 
    #customer_material_note {
        padding: 20px;
        margin: 0 0 25px 0;
    }

    #customer_material_note p {
        font-size: 1rem;
    }

    #additional_material_details {
        margin: 20px 0;
    }

    #additional_material_details textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Style for the Postcode Check button */
#check-postcode-btn {
    padding: 10px 20px;
    background-color: #007bff; /* Use your site's accent color */
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 10px; 
    margin-top: 10px;/* Add some space between the input and button */
}

#check-postcode-btn:hover {
    background-color: #0056b3; /* A darker shade on hover */
    transform: translateY(-1px);
    
}