/* OwnHost — unified contact form (dedicated-style layout) */
.oh-contact {
    --hp-border: #e8edf2;
    --hp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    background: #f1f5f9;
    padding: 64px 20px;
    scroll-margin-top: 130px;
}

.oh-contact--about {
    --hp-accent: #4db6ac;
    --hp-accent-dark: #3da89e;
    --hp-accent-glow: rgba(77, 182, 172, 0.25);
}

.oh-contact--antispam {
    --hp-accent: #e74c3c;
    --hp-accent-dark: #c0392b;
    --hp-accent-glow: rgba(231, 76, 60, 0.25);
}

.oh-contact-inner {
    max-width: 1220px;
    margin: 0 auto;
}

.oh-contact-header {
    text-align: center;
    margin-bottom: 36px;
}

.oh-contact-header h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.oh-contact-header p {
    color: #64748b;
    margin: 12px 0 0;
    line-height: 1.6;
}

.oh-contact-notice {
    font-size: 13px;
    color: var(--hp-accent, #20bc7e);
    margin-top: 10px;
    line-height: 1.5;
}

.oh-contact-notice a {
    color: inherit;
    text-decoration: underline;
}

.oh-contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.oh-form-card {
    background: #fff;
    padding: 36px;
    border-radius: 12px;
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
}

.oh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.oh-form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
}

.oh-form-card .custom-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}

.oh-form-card .custom-input:focus {
    border-color: var(--hp-accent, #20bc7e);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px var(--hp-accent-glow, rgba(32, 188, 126, 0.25));
}

.oh-form-card .custom-input[readonly] {
    background: #eef2f6;
    color: #64748b;
}

.oh-form-submit {
    width: 100%;
    background: var(--hp-accent, #20bc7e);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.oh-form-submit:hover {
    background: var(--hp-accent-dark, #1a9a66);
    transform: translateY(-1px);
}

.oh-char-count {
    font-size: 12px;
    text-align: right;
    color: #94a3b8;
    margin-top: -8px;
    margin-bottom: 16px;
}

.oh-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.oh-captcha-question {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    background: #e8edf2;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.oh-captcha-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--hp-border);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.oh-captcha-input:focus {
    border-color: var(--hp-accent, #20bc7e);
    outline: none;
    box-shadow: 0 0 0 3px var(--hp-accent-glow, rgba(32, 188, 126, 0.25));
}

.oh-contact .contact-info-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    border-top: 4px solid var(--hp-accent, #20bc7e);
    height: 100%;
}

.oh-contact .contact-info-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.oh-contact .contact-info-box > p {
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.6;
}

.oh-contact .contact-info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.oh-contact .contact-info-box li {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
}

.oh-contact .contact-info-box li i {
    color: var(--hp-accent, #20bc7e);
    width: 22px;
    font-size: 16px;
}

.oh-contact .contact-info-box a {
    color: #64748b;
    text-decoration: none;
}

.oh-contact .contact-info-box a:hover {
    color: var(--hp-accent, #20bc7e);
}

.oh-contact-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--hp-accent, #20bc7e);
    border-radius: 0 8px 8px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.oh-contact-map {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hp-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.oh-contact-map iframe {
    display: block;
    width: 100%;
    border: 0;
}

.oh-contact .alert-msg,
.oh-contact .ds-alert-success,
.oh-contact .ds-alert-error {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
}

.oh-contact .alert-msg.success,
.oh-contact .ds-alert-success {
    background: #ecfdf5;
    color: #047857;
}

.oh-contact .alert-msg.error,
.oh-contact .ds-alert-error,
.oh-contact p.ds-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    margin: 0 0 8px;
}

@media (max-width: 992px) {
    .oh-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .oh-contact {
        padding: 48px 16px;
    }

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

    .oh-form-card {
        padding: 24px 20px;
    }

    .oh-captcha {
        flex-direction: column;
        align-items: stretch;
    }
}
