/**
 * Medication Contact Error Page CSS
 *
 * Styles for the medication error reporting contact form
 *
 * @package Railway_Info
 * @since 1.0.0
 */

/* HIGHLIGHT START: Contact Error Container */
.medication-contact-error-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-error-header {
    margin-bottom: 30px;
    text-align: center;
}

.contact-error-header h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-error-header p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}
/* HIGHLIGHT END */

/* HIGHLIGHT START: Medication Info Box */
.medication-info-box {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.medication-info-box h3 {
    margin: 0 0 15px 0;
    color: #e65100;
    font-size: 1.3em;
}

.medication-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ffe0b2;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    min-width: 120px;
    color: #e65100;
    font-weight: 600;
}

.detail-row span {
    color: #333;
    flex: 1;
}
/* HIGHLIGHT END */

/* HIGHLIGHT START: Contact Form Styles */
.medication-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.form-group .required {
    color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #f57c00;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}
/* HIGHLIGHT END */

/* HIGHLIGHT START: Medication Not Found Styles */
.medication-not-found {
    background: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.medication-not-found p {
    color: #c62828;
    margin: 0 0 15px 0;
}
/* HIGHLIGHT END */

/* HIGHLIGHT START: Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.form-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.form-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.form-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.form-message p {
    margin: 0;
    font-size: 0.95em;
}
/* HIGHLIGHT END */

/* Responsive Design */
@media (max-width: 768px) {
    .medication-contact-error-container {
        margin: 20px;
        padding: 20px;
    }
    
    .contact-error-header h1 {
        font-size: 1.5em;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row strong {
        min-width: auto;
    }
    
    .submit-btn {
        width: 100%;
    }
}

