/* BrewHub Contact Us Page Styles */
/* File: webroot/css/contact-us.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: #6B4E3D;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #8B5A2B;
}

.flash-container {
    margin: 0;                 /* sits under your header */
}

.message {
    padding: 1rem 1.25rem;
    margin: 0;                 /* you put messages right under header, so no gap */
    border-radius: 0;
    border-width: 1px;
    border-style: solid;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    animation: flash-in .2s ease-out;
}

.message.success {
    background-color: #e6ffed;
    color: #1e7e34;
    border-color: #b7f5c6;
}

.message.error {
    background-color: #ffeaea;
    color: #a71d2a;
    border-color: #f5b5bb;
}

.logo {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.nav a:hover,
.nav a.active {
    border-color: #D2B48C;
}

/* Flash Messages */
.message {
    padding: 1rem 2rem;
    margin: 0;
    border-radius: 0;
}

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

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

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 3rem;
    padding: 2rem 0rem;
    margin: 0 auto;
}

/* Contact Info Section */
.contact-info {
    background-color: #FAF7F0;
    padding: 2rem;
    border: 2px solid #D2B48C;
}

.contact-info h2 {
    color: #6B4E3D;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info h3 {
    color: #6B4E3D;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: white;
    border-radius: 4px;
    font-size: 1rem;
}

.info-item a{
  color: #333;
}

.info-item a:hover, a:active{
  color: #6B4E3D;
}

.icon-placeholder {
    width: 24px;
    height: 24px;
    background-color: #8B5A2B;
    border-radius: 50%;
    margin-right: 1rem;
}

.hours-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #D2B48C;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.day-hours {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: white;
    border-radius: 4px;
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0px;
    border: 2px solid #D2B48C;
}

.contact-form h2 {
    color: #6B4E3D;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #6B4E3D;
}

.form-control,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #D2B48C;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B5A2B;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* CAPTCHA Section */
.captcha-section {
    background-color: #FAF7F0;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #D2B48C;
    margin-bottom: 1.5rem;
}

.captcha-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.captcha-icon {
    width: 24px;
    height: 24px;
    background-color: #4CAF50;
    border-radius: 4px;
    margin-right: 1rem;
}

.captcha-challenge {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #333;
}

.captcha-input {
    width: 150px !important;
    text-align: center;
}

.captcha-refresh {
    background-color: #8B5A2B;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-refresh:hover {
    background-color: #6B4E3D;
}

/* Submit Button */
.submit-btn {
  background-color: #8B5A2B;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-btn:hover {
    background-color: #6B4E3D;
}

/* Form Errors */
.error-message {
    color: #D32F2F;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .header {
        padding: 1rem;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

    .day-hours {
        flex-direction: column;
        text-align: center;
    }
}
