/* Date to Date Calculator - Calculator-specific styles */

/* Form label styling */
.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* Form input styling */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s;
    color: #333;
}

.form-input:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Date input specific styles - enhanced for mobile */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 44px;
    font-size: 16px;
    color: #333;
    width: 100%;
    position: relative;
    display: block;
}

/* Ensure the date input has a visible background and border before selection */
input[type="date"]:not(:focus):not(:valid) {
    color: #666;
}

/* Add a placeholder style when no date is selected */
input[type="date"]:not(:focus):not(:valid)::before {
    content: attr(placeholder);
    color: #666;
    width: 100%;
}

/* Calendar picker indicator styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    position: absolute;
    right: 8px;
    height: 20px;
    width: 20px;
}

/* Hover state for the calendar picker */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Active/Focus states */
input[type="date"]:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Results section title */
.results-section-title {
    color: #003049;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Results item styling */
.results-item {
    color: #003049;
    font-size: 16px;
}

/* Results total section */
.results-total {
    padding: 16px 0 0 0;
    background: none;
    border-top: 1px solid #bae6fd;
    margin-top: 16px;
}

/* Date summary styling */
.date-summary {
    margin-bottom: 8px;
    color: #003049;
    font-size: 16px;
    font-weight: 500;
}

.date-summary .results-value {
    color: #003049;
    display: block;
    margin-bottom: 4px;
}

.total-material {
    font-weight: 600;
    font-size: 16px;
    color: #003049;
}

/* FAQ Section styling specific to this calculator */
.faq-section {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: #003049;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Checkbox styling */
input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Mobile specific date input adjustments */
@media (max-width: 640px) {
    .faq-section {
        padding: 16px;
        margin-top: 24px;
    }

    .faq-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    input[type="date"] {
        background-color: #ffffff;
        border: 1px solid #ddd;
    }

    input[type="date"]::-webkit-datetime-edit-text,
    input[type="date"]::-webkit-datetime-edit-month-field,
    input[type="date"]::-webkit-datetime-edit-day-field,
    input[type="date"]::-webkit-datetime-edit-year-field {
        color: #333;
    }
}
