/* ===================================
   CONTACT FORM STYLES
   Mobile-First Responsive Design
   =================================== */

/* Container */
.contact-page-wrapper {
    padding: 20px;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h1 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    text-align: center;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.equipment-label {
    font-size: 16px;
    margin-bottom: 12px;
}

.required {
    color: #dc3545;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

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

/* Form Row for Date Fields */
.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Equipment Checkboxes */
.equipment-checkboxes {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    max-height: 300px;
    overflow-y: auto;
}

.equipment-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.equipment-item:hover {
    background-color: #f0f0f0;
}

.equipment-item:last-child {
    margin-bottom: 0;
}

.equipment-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.equipment-item label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.equipment-type {
    font-size: 12px;
    color: #666;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

.no-equipment {
    color: #666;
    font-style: italic;
    margin: 0;
    text-align: center;
    padding: 20px;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.submit-button:hover {
    background-color: #45a049;
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
}

.submit-button.loading .btn-text {
    display: none;
}

.submit-button.loading .btn-loader {
    display: inline-block;
}

/* Validation Error Messages */
.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets (768px and up) */
@media screen and (min-width: 768px) {
    .contact-page-wrapper {
        padding: 40px 20px;
    }
    
    .contact-container {
        padding: 40px;
    }
    
    .contact-container h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
    .contact-page-wrapper {
        padding: 60px 20px;
    }
    
    .contact-container {
        padding: 50px 60px;
    }
}

/* Mobile - Stack date fields on small screens */
@media screen and (max-width: 480px) {
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group-row .form-group {
        margin-bottom: 20px;
    }
    
    .form-group-row .form-group:last-child {
        margin-bottom: 0;
    }
    
    .equipment-type {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .submit-button {
        display: none;
    }
    
    .contact-page-wrapper {
        background-color: white;
    }
    
    .contact-container {
        box-shadow: none;
    }
}
