/* ── Jungle Treasures Inquiry Form ─────────────────────────────────── */

.jt-inquiry-wrapper {
    max-width: 640px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.jt-inquiry-card {
    background: #ffffff;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── Header ───────────────────────────────────────────────────────── */

.jt-inquiry-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #1a3c2a 0%, #2d5a3f 100%);
    color: #fff;
}

.jt-inquiry-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jt-inquiry-title {
    margin: 0 0 2px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.jt-inquiry-subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 400;
}

.jt-inquiry-subtitle strong {
    color: #8fd4a4;
    font-weight: 600;
}

/* ── Form ─────────────────────────────────────────────────────────── */

.jt-inquiry-form {
    padding: 24px 28px 28px;
}

.jt-field-row {
    margin-bottom: 18px;
}

.jt-field-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .jt-field-row--two {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .jt-inquiry-form {
        padding: 20px 20px 24px;
    }
    .jt-inquiry-header {
        padding: 20px;
    }
}

.jt-field-group {
    display: flex;
    flex-direction: column;
}

.jt-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374a3e;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.jt-required {
    color: #d94848;
    font-weight: 700;
}

.jt-optional {
    color: #94a89c;
    font-weight: 400;
    text-transform: none;
    font-size: 0.8rem;
}

.jt-input,
.jt-select,
.jt-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d4ddd7;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a3c2a;
    background: #f8faf9;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

.jt-input:focus,
.jt-select:focus,
.jt-textarea:focus {
    border-color: #2d5a3f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.12);
}

.jt-input::placeholder,
.jt-textarea::placeholder {
    color: #a3b5aa;
}

.jt-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23374a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.jt-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Submit Button ────────────────────────────────────────────────── */

.jt-submit-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 6px;
    background: linear-gradient(135deg, #1a3c2a 0%, #2d5a3f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.jt-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 60, 42, 0.3);
}

.jt-submit-btn:active {
    transform: translateY(0);
}

.jt-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ──────────────────────────────────────────────────────── */

.jt-spinner {
    animation: jt-spin 0.8s linear infinite;
}

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

/* ── Privacy Note ─────────────────────────────────────────────────── */

.jt-privacy-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 0.78rem;
    color: #7d9487;
    justify-content: center;
}

.jt-privacy-note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Success Message ──────────────────────────────────────────────── */

.jt-success-msg {
    text-align: center;
    padding: 48px 28px;
}

.jt-success-icon {
    color: #2d5a3f;
    margin-bottom: 12px;
}

.jt-success-icon svg {
    width: 56px;
    height: 56px;
}

.jt-success-msg h3 {
    font-size: 1.4rem;
    color: #1a3c2a;
    margin: 0 0 8px;
}

.jt-success-msg p {
    color: #5a7565;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.jt-success-msg strong {
    color: #2d5a3f;
}

/* ── Error Message ────────────────────────────────────────────────── */

.jt-error-msg {
    text-align: center;
    padding: 24px 28px;
}

.jt-error-msg p {
    color: #b34040;
    font-size: 0.9rem;
    margin: 0;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.jt-error-msg a {
    color: #1a3c2a;
    font-weight: 600;
}

/* ── Field Validation ─────────────────────────────────────────────── */

.jt-input:invalid:not(:placeholder-shown),
.jt-textarea:invalid:not(:placeholder-shown) {
    border-color: #e8a0a0;
}

.jt-input:valid:not(:placeholder-shown) {
    border-color: #8fd4a4;
}

/* ── Inline error ─────────────────────────────────────────────────── */

.jt-field-error {
    font-size: 0.78rem;
    color: #d94848;
    margin-top: 4px;
    display: none;
}

.jt-field-group.has-error .jt-field-error {
    display: block;
}

.jt-field-group.has-error .jt-input,
.jt-field-group.has-error .jt-select,
.jt-field-group.has-error .jt-textarea {
    border-color: #e8a0a0;
    background: #fffbfb;
}
