/**
 * EP Contact Page Styles
 * Clean, modern, accessible contact page
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

.ep-contact-page {
    --ep-coral: #e11d48;
    --ep-coral-dark: #9f1239;
    --ep-coral-light: #fda4af;
    --ep-text: #1f2937;
    --ep-text-muted: #6b7280;
    --ep-bg: #ffffff;
    --ep-bg-alt: #f9fafb;
    --ep-border: #e5e7eb;
    --ep-success: #059669;
    --ep-error: #dc2626;
    --ep-focus: #3b82f6;
    --ep-radius: 8px;
    --ep-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ep-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --ep-transition: 0.2s ease;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ep-text);
    line-height: 1.6;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ep-contact-hero {
    background: linear-gradient(135deg, var(--ep-coral-dark), var(--ep-coral));
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: -30px -30px 0 -30px;
}

/* Decorative circles */
.ep-contact-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(253, 164, 175, 0.3);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.ep-contact-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(253, 164, 175, 0.3);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.ep-contact-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.ep-contact-hero__title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ep-contact-hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.ep-contact-hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ep-contact-hero .ep-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.ep-contact-hero .ep-trust-chip svg {
    flex-shrink: 0;
}

.ep-contact-hero__note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.ep-contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
    max-width: 3050px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .ep-contact-content {
        grid-template-columns: 1fr 320px;
        gap: 48px;
        padding: 48px 40px;
    }
}

.ep-contact-main {
    min-width: 0;
}

.ep-contact-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 24px 0;
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.ep-contact-faq {
    margin-bottom: 48px;
}

.ep-accordion {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    overflow: hidden;
}

.ep-accordion__item {
    border-bottom: 1px solid var(--ep-border);
}

.ep-accordion__item:last-child {
    border-bottom: none;
}

.ep-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--ep-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-text);
    transition: background-color var(--ep-transition);
}

.ep-accordion__trigger:hover {
    background: var(--ep-bg-alt);
    color: #111827;
}

.ep-accordion__trigger:focus {
    outline: 2px solid var(--ep-focus);
    outline-offset: -2px;
}

.ep-accordion__trigger span {
    flex: 1;
}

.ep-accordion__icon {
    flex-shrink: 0;
    transition: transform var(--ep-transition);
    color: var(--ep-text-muted);
}

.ep-accordion__trigger[aria-expanded="true"] {
    background: var(--ep-coral);
    color: #111827;
}

.ep-accordion__trigger[aria-expanded="true"] .ep-accordion__icon {
    transform: rotate(180deg);
    color: #111827;
}

.ep-accordion__panel {
    padding: 0 20px 20px 20px;
    background: var(--ep-bg-alt);
}

.ep-accordion__panel[hidden] {
    display: none;
}

.ep-accordion__panel p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--ep-text-muted);
    line-height: 1.6;
}

.ep-accordion__link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-coral);
    text-decoration: none;
    transition: color var(--ep-transition);
}

.ep-accordion__link:hover {
    color: var(--ep-coral-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.ep-contact-form-section {
    background: var(--ep-bg);
}

.ep-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Honeypot - visually hidden but accessible to bots */
.ep-contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.ep-contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .ep-contact-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.ep-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-contact-form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
}

.ep-required {
    color: var(--ep-coral);
}

.ep-contact-form__input,
.ep-contact-form__select,
.ep-contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ep-text);
    background: var(--ep-bg);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    transition: border-color var(--ep-transition), box-shadow var(--ep-transition);
}

.ep-contact-form__input:focus,
.ep-contact-form__select:focus,
.ep-contact-form__textarea:focus {
    outline: none;
    border-color: var(--ep-coral);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.ep-contact-form__input.ep-error,
.ep-contact-form__select.ep-error,
.ep-contact-form__textarea.ep-error {
    border-color: var(--ep-error);
}

.ep-contact-form__input.ep-error:focus,
.ep-contact-form__select.ep-error:focus,
.ep-contact-form__textarea.ep-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.ep-contact-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.ep-contact-form__textarea {
    resize: vertical;
    min-height: 140px;
}

.ep-contact-form__hint {
    font-size: 13px;
    color: var(--ep-text-muted);
}

.ep-contact-form__error {
    font-size: 13px;
    color: var(--ep-error);
    min-height: 18px;
}

/* Conditional fields */
.ep-contact-form__conditional {
    animation: fadeIn 0.3s ease;
}

.ep-contact-form__conditional[hidden] {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* File upload */
.ep-contact-form__upload {
    position: relative;
}

.ep-contact-form__file {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ep-contact-form__upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 20px;
    background: var(--ep-bg-alt);
    border: 2px dashed var(--ep-border);
    border-radius: var(--ep-radius);
    text-align: center;
    transition: border-color var(--ep-transition), background-color var(--ep-transition);
}

.ep-contact-form__upload:hover .ep-contact-form__upload-label {
    border-color: var(--ep-coral);
    background: rgba(225, 29, 72, 0.02);
}

.ep-contact-form__upload-label svg {
    color: var(--ep-text-muted);
}

.ep-upload-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-text);
}

.ep-upload-info {
    font-size: 12px;
    color: var(--ep-text-muted);
}

.ep-contact-form__file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ep-bg-alt);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    margin-top: 8px;
}

.ep-contact-form__file-preview[hidden] {
    display: none;
}

.ep-file-name {
    font-size: 14px;
    color: var(--ep-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-file-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-border);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: var(--ep-text-muted);
    cursor: pointer;
    transition: background-color var(--ep-transition), color var(--ep-transition);
}

.ep-file-remove:hover {
    background: var(--ep-error);
    color: #ffffff;
}

/* Consent */
.ep-contact-form__consent {
    font-size: 13px;
    color: var(--ep-text-muted);
}

.ep-contact-form__consent a {
    color: var(--ep-coral);
    text-decoration: none;
}

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

/* Submit button */
.ep-contact-form__submit {
    padding-top: 8px;
}

.ep-contact-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: var(--ep-coral);
    border: none;
    border-radius: var(--ep-radius);
    cursor: pointer;
    transition: background-color var(--ep-transition), transform var(--ep-transition);
}

.ep-contact-form__button:hover:not(:disabled) {
    background: var(--ep-coral-dark);
}

.ep-contact-form__button:focus {
    outline: 2px solid var(--ep-focus);
    outline-offset: 2px;
}

.ep-contact-form__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ep-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ep-btn-loading[hidden],
.ep-btn-text[hidden] {
    display: none;
}

.ep-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form status */
.ep-contact-form__status {
    padding: 16px;
    border-radius: var(--ep-radius);
    font-size: 14px;
}

.ep-contact-form__status[hidden] {
    display: none;
}

.ep-contact-form__status.ep-status-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--ep-error);
}

/* ==========================================================================
   Success State
   ========================================================================== */

.ep-contact-success {
    text-align: center;
    padding: 48px 24px;
}

.ep-contact-success[hidden] {
    display: none;
}

.ep-contact-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
}

.ep-contact-success__icon svg {
    color: var(--ep-success);
}

.ep-contact-success__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 12px 0;
}

.ep-contact-success__text {
    font-size: 16px;
    color: var(--ep-text-muted);
    margin: 0 0 32px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ep-contact-success__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ep-contact-success__links p {
    font-size: 14px;
    color: var(--ep-text-muted);
    margin: 0;
}

.ep-contact-success__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-coral);
    background: rgba(225, 29, 72, 0.05);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: var(--ep-radius);
    text-decoration: none;
    transition: background-color var(--ep-transition);
}

.ep-contact-success__link:hover {
    background: rgba(225, 29, 72, 0.1);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.ep-contact-sidebar__card {
    position: sticky;
    top: 24px;
    background: var(--ep-bg);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 24px;
    box-shadow: var(--ep-shadow);
}

.ep-contact-sidebar__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 16px 0;
}

.ep-contact-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ep-contact-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-text);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color var(--ep-transition), color var(--ep-transition);
}

.ep-contact-sidebar__link:hover {
    background: var(--ep-bg-alt);
    color: var(--ep-coral);
}

.ep-contact-sidebar__link svg {
    flex-shrink: 0;
    color: var(--ep-text-muted);
    transition: color var(--ep-transition);
}

.ep-contact-sidebar__link:hover svg {
    color: var(--ep-coral);
}

.ep-contact-sidebar__divider {
    height: 1px;
    background: var(--ep-border);
    margin: 20px 0;
}

.ep-contact-sidebar__email,
.ep-contact-sidebar__hours {
    margin-bottom: 20px;
}

.ep-contact-sidebar__email:last-child,
.ep-contact-sidebar__hours:last-child {
    margin-bottom: 0;
}

.ep-contact-sidebar__email h4,
.ep-contact-sidebar__hours h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.ep-contact-sidebar__mailto {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-coral);
    text-decoration: none;
    word-break: break-all;
}

.ep-contact-sidebar__mailto:hover {
    text-decoration: underline;
}

.ep-contact-sidebar__hours p {
    font-size: 14px;
    color: var(--ep-text);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .ep-contact-hero {
        padding: 48px 20px;
        margin: -20px -20px 0 -20px;
    }

    .ep-contact-hero__title {
        font-size: 32px;
    }

    .ep-contact-hero__subtitle {
        font-size: 16px;
    }

    .ep-contact-hero__chips {
        gap: 8px;
    }

    .ep-contact-hero .ep-trust-chip {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ep-contact-content {
        padding: 24px 0;
        gap: 32px;
    }

    .ep-contact-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .ep-accordion__trigger {
        padding: 14px 16px;
        font-size: 14px;
    }

    .ep-accordion__panel {
        padding: 0 16px 16px 16px;
    }

    .ep-contact-form__button {
        width: 100%;
    }

    .ep-contact-sidebar__card {
        position: static;
    }
}

@media (max-width: 480px) {
    .ep-contact-hero {
        padding: 40px 16px;
        margin: -16px -16px 0 -16px;
    }

    .ep-contact-hero__title {
        font-size: 28px;
    }

    .ep-contact-hero__chips {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .ep-contact-hero {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 20px !important;
    }

    .ep-contact-hero__title,
    .ep-contact-hero__subtitle,
    .ep-contact-hero .ep-trust-chip {
        color: #000000 !important;
    }

    .ep-contact-form,
    .ep-accordion {
        display: none !important;
    }
}
