/* OHA Contact Router v1.0.0
   High-specificity selectors throughout to override dark theme CSS.
   All colors use !important on background/color/border to prevent theme bleed.
   Accent colors: #AD3119 (dark), #E76653 (light), #FF0000 (highlight red)
   Backgrounds: #000000, #680400 (dark), #1a0100 (card surface)
*/

/* ---- Wrapper ---- */

.oha-cr-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

/* ---- Cards grid ---- */

.oha-cr-wrap .oha-cr-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.oha-cr-wrap .oha-cr-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: #0d0000 !important;
    border: 2px solid #AD3119 !important;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: #ffffff !important;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.oha-cr-wrap .oha-cr-card:hover {
    border-color: #E76653 !important;
    background: #1a0100 !important;
    box-shadow: 0 4px 16px rgba(173, 49, 25, 0.35) !important;
}

.oha-cr-wrap .oha-cr-card.is-active {
    border-color: #E76653 !important;
    background: #2a0100 !important;
    box-shadow: 0 4px 16px rgba(173, 49, 25, 0.45) !important;
}

/* Card icon */

.oha-cr-wrap .oha-cr-card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #AD3119 !important;
    border-radius: 8px;
    color: #ffffff !important;
    transition: background 0.18s ease;
}

.oha-cr-wrap .oha-cr-card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.oha-cr-wrap .oha-cr-card-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oha-cr-wrap .oha-cr-card:hover .oha-cr-card-icon,
.oha-cr-wrap .oha-cr-card.is-active .oha-cr-card-icon {
    background: #E76653 !important;
}

/* Card text body */

.oha-cr-wrap .oha-cr-card-body {
    flex: 1;
    min-width: 0;
}

.oha-cr-wrap .oha-cr-card-title {
    font-weight: 700 !important;
    font-size: 0.975rem !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3;
}

.oha-cr-wrap .oha-cr-card-desc {
    font-size: 0.82rem !important;
    color: #E76653 !important;
    line-height: 1.45;
    margin: 0 !important;
}

/* Chevron */

.oha-cr-wrap .oha-cr-card-chevron {
    flex-shrink: 0;
    color: #AD3119 !important;
    transition: transform 0.2s ease, color 0.18s ease;
    display: flex;
    align-items: center;
}

.oha-cr-wrap .oha-cr-card-chevron svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oha-cr-wrap .oha-cr-card:hover .oha-cr-card-chevron,
.oha-cr-wrap .oha-cr-card.is-active .oha-cr-card-chevron {
    color: #E76653 !important;
}

.oha-cr-wrap .oha-cr-card.is-active .oha-cr-card-chevron {
    transform: rotate(90deg);
}

/* ---- Contact panel ---- */

.oha-cr-wrap .oha-cr-panel {
    display: none;
    background: #0d0000 !important;
    border: 2px solid #AD3119 !important;
    border-radius: 10px;
    padding: 26px 28px;
    margin-top: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    animation: oha-cr-slide-in 0.2s ease;
}

.oha-cr-wrap .oha-cr-panel.is-open {
    display: block !important;
}

@keyframes oha-cr-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.oha-cr-wrap .oha-cr-panel-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #AD3119 !important;
}

.oha-cr-wrap .oha-cr-panel-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #E76653 !important;
    margin: 0 !important;
}

.oha-cr-wrap .oha-cr-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 1px solid #AD3119 !important;
    border-radius: 6px;
    cursor: pointer;
    color: #AD3119 !important;
    padding: 5px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    line-height: 1;
}

.oha-cr-wrap .oha-cr-panel-close:hover {
    color: #ffffff !important;
    border-color: #E76653 !important;
    background: #AD3119 !important;
}

.oha-cr-wrap .oha-cr-panel-close svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ---- Form ---- */

.oha-cr-wrap .oha-cr-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.oha-cr-wrap .oha-cr-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.oha-cr-wrap .oha-cr-field label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #E76653 !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
    margin: 0 !important;
}

.oha-cr-wrap .oha-cr-required {
    color: #FF0000 !important;
}

.oha-cr-wrap .oha-cr-field input[type="text"],
.oha-cr-wrap .oha-cr-field input[type="email"],
.oha-cr-wrap .oha-cr-field textarea {
    width: 100% !important;
    padding: 11px 14px !important;
    background: #1a0000 !important;
    border: 1.5px solid #680400 !important;
    border-radius: 6px !important;
    font-size: 0.975rem !important;
    font-family: inherit !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.oha-cr-wrap .oha-cr-field input[type="text"]:focus,
.oha-cr-wrap .oha-cr-field input[type="email"]:focus,
.oha-cr-wrap .oha-cr-field textarea:focus {
    border-color: #E76653 !important;
    box-shadow: 0 0 0 3px rgba(231, 102, 83, 0.2) !important;
}

.oha-cr-wrap .oha-cr-field input::placeholder,
.oha-cr-wrap .oha-cr-field textarea::placeholder {
    color: #5a2a20 !important;
    opacity: 1 !important;
}

.oha-cr-wrap .oha-cr-field textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* ---- Submit row ---- */

.oha-cr-wrap .oha-cr-form-footer {
    display: flex !important;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.oha-cr-wrap .oha-cr-submit {
    background: #AD3119 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    letter-spacing: 0.02em;
    transition: background 0.18s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.oha-cr-wrap .oha-cr-submit:hover {
    background: #E76653 !important;
}

.oha-cr-wrap .oha-cr-submit:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.oha-cr-wrap .oha-cr-sending {
    display: none;
    font-size: 0.9rem !important;
    color: #E76653 !important;
}

.oha-cr-wrap .oha-cr-sending.is-visible {
    display: inline !important;
}

/* ---- Result messages ---- */

.oha-cr-wrap .oha-cr-result {
    display: none;
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 0.95rem !important;
    line-height: 1.5;
}

.oha-cr-wrap .oha-cr-result.is-success {
    display: block !important;
    background: #001a00 !important;
    color: #7dcc72 !important;
    border: 1px solid #1a5c14 !important;
}

.oha-cr-wrap .oha-cr-result.is-error {
    display: block !important;
    background: #1a0000 !important;
    color: #E76653 !important;
    border: 1px solid #AD3119 !important;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .oha-cr-wrap .oha-cr-cards {
        grid-template-columns: 1fr;
    }

    .oha-cr-wrap .oha-cr-panel {
        padding: 20px 16px !important;
    }
}
