/* =============================================================================
   OH Contact Form — Stylesheet
   JACB Services — v1.0.0
   ============================================================================= */

:root {
    --ohc-forest:  #2d4a3e;
    --ohc-sage:    #7d8570;
    --ohc-cream:   #f0ece0;
    --ohc-bg:      #f5f3ee;
    --ohc-border:  #d8d5cc;
    --ohc-text:    #1a2e25;
    --ohc-muted:   #5a6b5e;
    --ohc-error:   #b91c1c;
    --ohc-radius:  6px;
}

.ohc-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

.ohc-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2e25;
    margin-bottom: 0.5rem;
}

.ohc-form-intro {
    font-size: 1rem;
    color: #5a6b5e;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- Rows --- */
.ohc-row { display: grid; gap: 1.25rem; }
.ohc-row--two { grid-template-columns: 1fr 1fr; }

/* --- Fields --- */
.ohc-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.ohc-field--submit { margin-bottom: 0; }

/* --- Labels --- */
.ohc-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ohc-text);
}
.ohc-req { color: var(--ohc-error); margin-left: 2px; }

/* --- Inputs --- */
.ohc-input,
.ohc-textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ohc-text);
    background: #ffffff;
    border: 1px solid var(--ohc-border);
    border-radius: var(--ohc-radius);
    padding: 0.65rem 0.875rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.ohc-input:focus,
.ohc-textarea:focus {
    outline: none;
    border-color: var(--ohc-forest);
    box-shadow: 0 0 0 3px rgba(45,74,62,0.12);
}

.ohc-input::placeholder,
.ohc-textarea::placeholder { color: #aaa; }

.ohc-input.ohc-invalid,
.ohc-textarea.ohc-invalid {
    border-color: var(--ohc-error);
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}

.ohc-textarea {
    resize: vertical;
    min-height: 130px;
}

/* --- Button --- */
.ohc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ohc-cream) !important;
    background: var(--ohc-forest) !important;
    border: 2px solid var(--ohc-forest) !important;
    border-radius: var(--ohc-radius);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.ohc-btn:hover {
    background: #1a2e25 !important;
    border-color: #1a2e25 !important;
    transform: translateY(-1px);
}

.ohc-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.ohc-btn__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(240,236,224,0.4);
    border-top-color: var(--ohc-cream);
    border-radius: 50%;
    animation: ohc-spin 0.6s linear infinite;
}

.ohc-btn__spinner.is-visible {
    display: inline-block;
}

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

/* --- Privacy note --- */
.ohc-privacy {
    font-size: 0.8125rem;
    color: var(--ohc-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.ohc-success,
.ohc-error {
    display: none;
}

.ohc-success.is-visible,
.ohc-error.is-visible {
    display: flex;
}
    gap: 0.75rem;
    background: #edf2ea;
    border-left: 4px solid var(--ohc-forest);
    border-radius: 0 var(--ohc-radius) var(--ohc-radius) 0;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.ohc-success__icon {
    font-size: 1.25rem;
    color: var(--ohc-forest);
    font-weight: 700;
    flex-shrink: 0;
}

.ohc-success__msg {
    color: var(--ohc-forest);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Error --- */
.ohc-error {
    background: #fef2f2;
    border-left: 4px solid var(--ohc-error);
    border-radius: 0 var(--ohc-radius) var(--ohc-radius) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.ohc-error__msg {
    color: var(--ohc-error);
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0;
}

/* --- Honeypot --- */
.ohc-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .ohc-row--two { grid-template-columns: 1fr; }
}
