/* Path: /public_html/css/pages.css */
/* Filename: pages.css */
/* Version: 2.0.0 */
/*
 * Changelog v2.0.0:
 * - Replaced single-column .contact-form with two-column .contact-page-layout grid
 * - Added .contact-info-panel, .contact-info-cards, .contact-info-card, .contact-reasons
 * - Added .contact-form-panel with sticky positioning
 * - Added .contact-form-heading, .form-group label
 * - Added :focus-visible states with WCAG-safe #1976D2
 * - Added .send-button:disabled state
 * - Added .contact-notice with .success/.error variants
 * - Fixed .send-button color from #3498db (WCAG-failing) to #1976D2
 * - Removed old .contact-form, .contact-subtitle rules
 */

/* ====================================================================
   CONTAINER (shared)
   ==================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ====================================================================
   CONTACT PAGE — Two-Column Layout
   ==================================================================== */
.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* --- Left Column: Info Panel --- */
.contact-info-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 32px;
    box-sizing: border-box;
}

.contact-info-panel h1 {
    font-size: 2em;
    margin: 0 0 12px;
    color: #1a202c;
}

.contact-intro {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ebf4ff;
    border-radius: 8px;
    color: #1976D2;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-text strong {
    font-size: 0.95rem;
    color: #2d3748;
}

.contact-info-text span {
    font-size: 0.9rem;
    color: #4a5568;
}

.contact-info-text a {
    font-size: 0.9rem;
    color: #1976D2;
    text-decoration: none;
}

.contact-info-text a:hover {
    text-decoration: underline;
}

/* Reasons Section */
.contact-reasons {
    margin-top: 8px;
}

.contact-reasons h2 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0 0 12px;
}

.contact-reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-reasons-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.contact-reasons-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #1976D2;
    border-radius: 50%;
}

/* --- Right Column: Form Panel --- */
.contact-form-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 32px;
    box-sizing: border-box;
}

.contact-form-heading {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 0 0 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    color: #2d3748;
    background: #f7fafc;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234a5568" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
}

.form-group select option[value=""] {
    color: #a0aec0;
}

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

/* Focus states — WCAG-safe blue */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid #1976D2;
    outline-offset: 2px;
    border-color: #1976D2;
}

/* Send Button */
.send-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1976D2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.send-button:hover {
    background: #1565C0;
}

.send-button:focus-visible {
    outline: 2px solid #1976D2;
    outline-offset: 2px;
}

.send-button:disabled {
    background: #90caf9;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Notice (success/error feedback) */
.contact-notice {
    padding: 12px;
    margin-top: 16px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
}

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

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

/* ====================================================================
   GENERIC CONTENT PAGES (About, Privacy, Cookie Policy)
   ==================================================================== */
.page-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.page-content h1 {
    font-size: 2em;
    margin: 0 0 20px;
    text-align: center;
    color: #2d3748;
}

.page-content h2 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: #2d3748;
}

.page-content p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 15px;
}

.page-content ul {
    list-style: disc;
    margin: 0 0 15px 20px;
    color: #4a5568;
}

.page-content ul li {
    font-size: 1rem;
    line-height: 1.6;
}

.page-content a {
    color: #1976D2;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media screen and (max-width: 1024px) {
    .page-content {
        max-width: 90%;
    }

    .contact-page-layout {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .main:has(.contact-page-layout) {
        padding: 0;
    }

    .main:has(.contact-page-layout) .container {
        padding: 0;
    }

    .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-info-panel h1 {
        font-size: 1.5em;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .page-content {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
    }

    .send-button {
        padding: 10px;
    }

    .page-content h1 {
        font-size: 1.5em;
    }

    .page-content h2 {
        font-size: 1.3em;
    }
}
