/* Custom styles for Axpress Transportation form */
.form-section input,
.form-section textarea {
    border: 2px solid #000000;
    border-radius: 10px;
    transition: border-color 0.3s ease;
    padding: 0.75rem; /* Increased padding */
    min-width: 120px;
    overflow: visible; /* Ensure content is visible */
}

.form-section .flatpickr-input {
    border: 2px solid #000000;
    border-radius: 10px;
    transition: border-color 0.3s ease;
    padding: 0.75rem; /* Increased padding */
    padding-top: 0.9rem; /* Adjusted to lift text */
    font-size: 16px;
    color: #000000;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 240px; /* Increased from 180px */
    height: 50px; /* Added height to ensure space */
    line-height: 1.2; /* Adjust line height to lift text */
    vertical-align: middle; /* Center vertically, fine-tune with padding */
    box-sizing: border-box;
    overflow: visible; /* Ensure content is visible */
}

/* Increase size specifically for iPhone */
@media only screen and (max-device-width: 812px) and (-webkit-device-pixel-ratio: 3) {
    .form-section .flatpickr-input {
        min-width: 260px; /* Further increased */
        font-size: 18px;
        padding: 1rem; /* Increased padding for iPhone */
        padding-top: 1.1rem; /* Adjusted to lift text on iPhone */
        height: 55px; /* Increased height for iPhone */
        line-height: 1.3; /* Adjusted line height for iPhone */
    }
}

.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Remove blue line focus indicator on iOS/Android */
.flatpickr-input:focus {
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

button:hover {
    transition: background-color 0.3s ease;
}

/* Ensure consistent spacing and alignment */
.form-container {
    padding: 1rem;
}

@media (min-width: 768px) {
    .form-container {
        padding: 2rem;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .form-section .flatpickr-input {
        font-size: 16px;
    }
}

/* Style for invalid fields */
.form-section input:invalid,
.form-section .flatpickr-input:invalid {
    border-color: #ef4444;
}