﻿/**
 * Tenbit Contact & Inquiry Form Widget Styles
 * Author: Team Tenbit (https://tenbitsol.com)
 * Version: 1.0.0
 * Theme: Obsidian Alpine Tactical / Hunters Element Design System
 */

.tenbit-contact-form-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
}

.tenbit-contact-form-wrapper *,
.tenbit-contact-form-wrapper *::before,
.tenbit-contact-form-wrapper *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2-COLUMN SPLIT GRID LAYOUT
   ========================================================================== */
.tenbit-form-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 52px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1024px) {
    .tenbit-form-grid-layout {
        grid-template-columns: 1fr 1.1fr;
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .tenbit-form-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   LEFT COLUMN: BRAND, HEADLINE, CONTACT ITEMS, SOCIALS
   ========================================================================== */
.tenbit-form-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Badge Tag */
.tenbit-form-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: #ff5500;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.25);
}

/* Main Heading */
.tenbit-form-main-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.tenbit-form-main-heading .heading-accent {
    color: #ff5500;
    display: inline-block;
}

/* Description Paragraph */
.tenbit-form-description {
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

/* Contact Info Items List */
.tenbit-form-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 6px;
}

.tenbit-form-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.tenbit-form-info-item.is-link:hover {
    transform: translateX(4px);
}

.tenbit-info-icon-box {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: #141816;
    border: 1px solid #232830;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5500;
    transition: all 0.25s ease;
}

.tenbit-form-info-item:hover .tenbit-info-icon-box {
    background: #ff5500;
    color: #ffffff;
    border-color: #ff5500;
    box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}

.tenbit-info-icon-box svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.tenbit-info-text-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tenbit-info-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.tenbit-info-item-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #939185;
    white-space: pre-line;
}

.tenbit-form-info-item.is-link:hover .tenbit-info-item-desc {
    color: #ff5500;
}

/* Connect / Socials */
.tenbit-form-socials-wrap {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tenbit-socials-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8e95a2;
    margin-bottom: 12px;
}

.tenbit-social-icons-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tenbit-social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #141816;
    border: 1px solid #232830;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.22s ease;
}

.tenbit-social-icon-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.tenbit-social-icon-btn:hover {
    background: #ff5500;
    color: #ffffff;
    border-color: #ff5500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

/* ==========================================================================
   RIGHT COLUMN: INTERACTIVE FORM CARD
   ========================================================================== */
.tenbit-form-card {
    background: #121518;
    border: 1px solid #232830;
    border-radius: 8px;
    padding: 38px 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

@media (max-width: 580px) {
    .tenbit-form-card {
        padding: 26px 20px;
    }
}

/* Header */
.tenbit-form-card-header {
    margin-bottom: 26px;
}

.tenbit-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.tenbit-card-title .title-accent {
    color: #ff5500;
}

.tenbit-card-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    color: #939185;
    margin: 0;
}

/* Form Fields Grid */
.tenbit-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

@media (max-width: 580px) {
    .tenbit-form-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.tenbit-form-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tenbit-form-field-group.col-span-full {
    grid-column: 1 / -1;
}

/* Labels */
.tenbit-field-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

.tenbit-field-label .label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5500;
}

.tenbit-field-label .label-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.tenbit-field-label .req-star {
    color: #ff5500;
    margin-left: 2px;
    font-weight: 800;
}

/* Inputs & Select & Textarea */
.tenbit-field-input,
.tenbit-field-select,
.tenbit-field-textarea {
    width: 100%;
    background: #0d0f0e;
    border: 1px solid #232830;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tenbit-field-input::placeholder,
.tenbit-field-textarea::placeholder {
    color: #64748b;
    font-size: 13.5px;
}

.tenbit-field-input:focus,
.tenbit-field-select:focus,
.tenbit-field-textarea:focus {
    border-color: #ff5500;
    background: #111413;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.18);
}

/* Custom Select Dropdown Arrow */
.tenbit-field-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url( data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox=0 0 24 24 fill=none stroke=%23ff5500 stroke-width=2.5 stroke-linecap=round stroke-linejoin=round%3E%3Cpath d=m6 9 6 6 6-6/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
    padding-right: 36px;
}

.tenbit-field-select option {
    background: #121518;
    color: #ffffff;
    padding: 8px;
}

/* Date picker calendar icon */
.tenbit-field-input[type='date']::-webkit-calendar-picker-indicator {
    filter: invert(0.6) sepia(1) saturate(5) hue-rotate(345deg);
    cursor: pointer;
}

.tenbit-field-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

/* Honey pot hidden field */
.tenbit-form-hp {
    display: none !important;
    position: absolute;
    left: -9999px;
}

/* Submit Button */
.tenbit-form-submit-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.tenbit-form-submit-btn {
    width: 100%;
    background: #ff5500;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 15px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 18px rgba(255, 85, 0, 0.35);
}

.tenbit-form-submit-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.22s ease;
}

.tenbit-form-submit-btn:hover {
    background: #ff7733;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 85, 0, 0.45);
}

.tenbit-form-submit-btn:hover svg {
    transform: translateX(3px) translateY(-1px);
}

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

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

/* Loading Spinner */
.tenbit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tenbit-spin 0.7s linear infinite;
}

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

.tenbit-form-submit-btn.is-loading .btn-text,
.tenbit-form-submit-btn.is-loading svg {
    display: none;
}

.tenbit-form-submit-btn.is-loading .tenbit-spinner {
    display: inline-block;
}

/* ==========================================================================
   FORM ALERTS & NOTICES
   ========================================================================== */
.tenbit-form-alert {
    grid-column: 1 / -1;
    display: none;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.5;
    animation: tenbit-fade-in 0.3s ease;
}

@keyframes tenbit-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tenbit-form-alert.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.tenbit-form-alert.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Field validation error border */
.tenbit-field-input.has-error,
.tenbit-field-select.has-error,
.tenbit-field-textarea.has-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

/* ==========================================================================
   LIGHT MODE OVERRIDE
   ========================================================================== */
.tenbit-contact-form-wrapper.theme-light {
    color: #191917;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-form-main-heading {
    color: #191917;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-form-description {
    color: #555555;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-form-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.tenbit-contact-form-wrapper.theme-light .tenbit-card-title {
    color: #191917;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-card-subtitle {
    color: #64748b;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-field-label {
    color: #1e293b;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-field-input,
.tenbit-contact-form-wrapper.theme-light .tenbit-field-select,
.tenbit-contact-form-wrapper.theme-light .tenbit-field-textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-info-icon-box {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-info-item-title {
    color: #0f172a;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-info-item-desc {
    color: #64748b;
}

.tenbit-contact-form-wrapper.theme-light .tenbit-social-icon-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}
