/*
 * Documentation Contact iframe page.
 *
 * Self-contained styles: this template is loaded as a standalone HTML
 * document with no theme header/footer, so we don't inherit the global
 * theme stylesheet bundle. All design tokens are declared locally.
 */

.bringits-docs-contact-iframe {
    --dc-brand: #3716DE;
    --dc-brand-soft: #EEF0FF;
    --dc-brand-strong: #2A0FAE;
    --dc-accent: #FFD950;
    --dc-text: #1B1F1D;
    --dc-text-muted: #5A5F66;
    --dc-text-subtle: #8A8F96;
    --dc-border: #E2E5EB;
    --dc-border-strong: #C9CDD6;
    --dc-surface: #FFFFFF;
    --dc-surface-muted: #F6F7FA;
    --dc-error: #C92929;
    --dc-success: #0F7A3E;
    --dc-radius: 14px;
    --dc-radius-sm: 8px;
    --dc-shadow: 0 1px 2px rgba(15, 18, 36, 0.04), 0 12px 32px -8px rgba(15, 18, 36, 0.12);
    --dc-shadow-focus: 0 0 0 4px rgba(55, 22, 222, 0.15);
    --dc-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    margin: 0;
    padding: 0;
    background: var(--dc-surface-muted);
    color: var(--dc-text);
    font-family: var(--dc-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bringits-docs-contact-iframe *,
.bringits-docs-contact-iframe *::before,
.bringits-docs-contact-iframe *::after {
    box-sizing: border-box;
}

.docs-contact-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
}

.docs-contact-card {
    width: 100%;
    max-width: 560px;
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.docs-contact-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dc-brand) 0%, var(--dc-accent) 100%);
}

.docs-contact-header {
    margin-bottom: 28px;
}

.docs-contact-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-brand);
    background: var(--dc-brand-soft);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 14px;
}

.docs-contact-title {
    font-family: var(--dc-font);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dc-text);
    margin: 0 0 10px 0;
}

.docs-contact-subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: var(--dc-text-muted);
    margin: 0;
    max-width: 46ch;
}

.docs-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.docs-contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.docs-contact-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dc-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.docs-contact-required {
    color: var(--dc-error);
    font-weight: 700;
}

.docs-contact-field input,
.docs-contact-field textarea {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--dc-text);
    background: var(--dc-surface);
    border: 1px solid var(--dc-border-strong);
    border-radius: var(--dc-radius-sm);
    padding: 12px 14px;
    width: 100%;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.docs-contact-field input::placeholder,
.docs-contact-field textarea::placeholder {
    color: var(--dc-text-subtle);
}

.docs-contact-field input:hover,
.docs-contact-field textarea:hover {
    border-color: #A3A8B5;
}

.docs-contact-field input:focus,
.docs-contact-field textarea:focus {
    outline: none;
    border-color: var(--dc-brand);
    box-shadow: var(--dc-shadow-focus);
    background: var(--dc-surface);
}

.docs-contact-field input:disabled,
.docs-contact-field textarea:disabled {
    background: var(--dc-surface-muted);
    color: var(--dc-text-muted);
    cursor: not-allowed;
}

.docs-contact-field input.error,
.docs-contact-field textarea.error {
    border-color: var(--dc-error);
}

.docs-contact-field textarea {
    resize: vertical;
    min-height: 120px;
}

.docs-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.docs-contact-submit {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #FFFFFF;
    background: var(--dc-brand);
    border: 1px solid var(--dc-brand);
    border-radius: var(--dc-radius-sm);
    padding: 14px 28px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    min-width: 160px;
    text-align: center;
}

.docs-contact-submit:hover {
    background: var(--dc-brand-strong);
    border-color: var(--dc-brand-strong);
}

.docs-contact-submit:focus-visible {
    outline: none;
    box-shadow: var(--dc-shadow-focus);
}

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

.docs-contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.docs-contact-fineprint {
    font-size: 13px;
    color: var(--dc-text-subtle);
    margin: 0;
}

.docs-contact-error {
    display: none;
    font-size: 14px;
    color: var(--dc-error);
    background: #FCEBEB;
    border: 1px solid #F4C9C9;
    border-radius: var(--dc-radius-sm);
    padding: 10px 12px;
}

.docs-contact-error[data-visible="true"],
.error-message[style*="block"] {
    display: block;
}

/* form-handler.js replaces the form with this container on success. */
.quick-start-success-message {
    background: var(--dc-brand-soft);
    border: 1px solid #D4D8F5;
    border-radius: var(--dc-radius);
    padding: 28px;
    text-align: center;
    transition: opacity 250ms ease;
}

.quick-start-success-message p {
    font-size: 16px;
    font-weight: 600;
    color: var(--dc-brand-strong);
    margin: 0;
}

@media (max-width: 520px) {
    .docs-contact-page {
        padding: 16px;
    }

    .docs-contact-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .docs-contact-title {
        font-size: 24px;
    }

    .docs-contact-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .docs-contact-submit,
    .docs-contact-field input,
    .docs-contact-field textarea,
    .quick-start-success-message {
        transition: none;
    }
}
