/* Enhanced Form Styles for The Natural Health Collective */

.rental-form-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(242, 242, 242, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.rental-form-header {
    background-color: #241317;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #a3c2d9;
}

.rental-form-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.rental-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #241317;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Fix for date input width */
input[type="date"].form-control {
    max-width: 100%;
    min-width: 0;
}

.form-control:focus {
    border-color: #a3c2d9;
    box-shadow: 0 0 0 3px rgba(163, 194, 217, 0.25);
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.submit-btn {
    background-color: #241317;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: rgba(163, 194, 217, 0.7);
    border: 1px solid #3a2128;
    color: #3a2128;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form message styles */
.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rental-form {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
