/* =====================================================
   C2CIMS Contact Block
   ===================================================== */

.c2cims-contact {
    width: 100%;
}

/* ── Layouts ──────────────────────────────────────── */
.c2cims-contact--side-by-side {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start;
}

.c2cims-contact--stacked {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (max-width: 768px) {
    .c2cims-contact--side-by-side {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Contact Info panel ───────────────────────────── */
.c2cims-contact-info-title,
.c2cims-contact-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c2cims-body-text, #1a1a1a);
    margin: 0 0 20px;
}

.c2cims-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.c2cims-contact-row a {
    color: var(--c2cims-accent, #fcba16);
    text-decoration: none;
}

.c2cims-contact-row a:hover {
    text-decoration: underline;
}

.c2cims-contact-icon {
    color: var(--c2cims-accent, #fcba16);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Hours ────────────────────────────────────────── */
.c2cims-contact-hours {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.c2cims-contact-hours-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c2cims-body-text, #1a1a1a);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.c2cims-contact-hours-title .dashicons {
    color: var(--c2cims-accent, #fcba16);
    font-size: 18px;
}

.c2cims-contact-hours-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.c2cims-contact-hours-table td {
    padding: 4px 12px 4px 0;
    color: #444;
    vertical-align: top;
}

.c2cims-contact-hours-table td:first-child {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* ── Form ─────────────────────────────────────────── */
.c2cims-contact-form-wrap {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 32px;
}

.c2cims-contact-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 540px) {
    .c2cims-contact-row-2 {
        grid-template-columns: 1fr;
    }
}

.c2cims-contact-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.c2cims-contact-row-2 .c2cims-contact-field {
    margin-bottom: 0;
}

.c2cims-contact-field label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.c2cims-contact-field input[type="text"],
.c2cims-contact-field input[type="email"],
.c2cims-contact-field input[type="tel"],
.c2cims-contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.c2cims-contact-field textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.c2cims-contact-field input:focus,
.c2cims-contact-field textarea:focus {
    outline: none;
    border-color: var(--c2cims-accent, #fcba16);
    box-shadow: 0 0 0 3px rgba(252, 186, 22, 0.18);
}

.c2cims-required {
    color: #cc0000;
}

.c2cims-contact-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row;
    margin-bottom: 0;
}

.c2cims-contact-btn {
    height: 44px;
    padding: 0 28px;
    background: var(--c2cims-accent, #fcba16);
    color: var(--c2cims-dark-bg, #1a1a1a);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.c2cims-contact-btn:hover {
    opacity: 0.88;
}

.c2cims-contact-required-note {
    font-size: 12px;
    color: #888;
}

/* ── Success / Error states ───────────────────────── */
.c2cims-contact-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0faf0;
    border: 1px solid #8bc48b;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 15px;
    color: #2d6a2d;
}

.c2cims-contact-success .dashicons {
    font-size: 22px;
    color: #4caf50;
    flex-shrink: 0;
}

.c2cims-contact-errors {
    background: #fff5f5;
    border: 1px solid #e8b4b4;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #a00;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Editor placeholder ───────────────────────────── */
.wp-block-c2cims-contact {
    background: #f0f6fc;
    border: 2px dashed #c5d5e8;
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
}
