/* ==========================================================
   TEC Contact Request – Frontend Styles
   ========================================================== */

/* ── Button ───────────────────────────────────────────── */
.tec-cr-wrap {
    margin: 24px 0;
}

.tec-cr-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #2271b1;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
}

.tec-cr-open-btn:hover,
.tec-cr-open-btn:focus {
    background-color: #135e96;
    outline: 2px solid #135e96;
    outline-offset: 2px;
}

.tec-cr-open-btn:active {
    transform: translateY(1px);
}

/* Envelope icon via CSS (no external dependency) */
.tec-cr-open-btn::before {
    content: "✉";
    font-size: 1.1em;
}

/* ── Modal Overlay ────────────────────────────────────── */
.tec-cr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tec-cr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

/* ── Modal Inner ──────────────────────────────────────── */
.tec-cr-modal-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    padding: 36px 40px 40px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: tec-cr-slide-in 0.22s ease;
}

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

/* ── Close Button ─────────────────────────────────────── */
.tec-cr-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.tec-cr-close:hover {
    color: #000;
    background: #f0f0f0;
}

/* ── Modal Typography ─────────────────────────────────── */
.tec-cr-modal-inner h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d2327;
}

.tec-cr-event-ref {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #555;
    padding: 10px 14px;
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    border-radius: 0 4px 4px 0;
}

.tec-cr-event-ref strong {
    color: #2271b1;
}

/* ── Notice ───────────────────────────────────────────── */
.tec-cr-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 500;
}

.tec-cr-notice.is-success {
    background: #edfaee;
    border: 1px solid #46b450;
    color: #1a5e20;
}

.tec-cr-notice.is-error {
    background: #fde8e8;
    border: 1px solid #dc3232;
    color: #8b1c1c;
}

/* ── Form Fields ──────────────────────────────────────── */
.tec-cr-field {
    margin-bottom: 18px;
}

.tec-cr-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3c4045;
}

.tec-cr-field input[type="text"],
.tec-cr-field input[type="email"],
.tec-cr-field input[type="tel"],
.tec-cr-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #1d2327;
    background: #fff;
    border: 1.5px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.tec-cr-field input:focus,
.tec-cr-field textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
    outline: none;
}

.tec-cr-field input.tec-cr-invalid,
.tec-cr-field textarea.tec-cr-invalid {
    border-color: #dc3232;
}

.tec-cr-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Submit Button ────────────────────────────────────── */
.tec-cr-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: #2271b1;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 6px;
}

.tec-cr-submit-btn:hover {
    background: #135e96;
}

.tec-cr-submit-btn:disabled {
    background: #8caed5;
    cursor: not-allowed;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 540px) {
    .tec-cr-modal-inner {
        padding: 24px 20px 28px;
    }
}
