/* TERA Contact Form - Frontend Styles */
/* Scoped under .tcf-form to avoid theme conflicts */

.tcf-form {
    --tcf-primary: #224CA0;
    --tcf-error: #ED1C24;
    --tcf-radius: 10px;
    --tcf-gray: #707070;
    --tcf-light: #f3f3f3;
    --tcf-white: #fff;
    --tcf-border: #bbb;
    --tcf-focus-bg: #F3F7FF;
    --tcf-focus-border: #BED4FF;
    --tcf-font: 'Noto Sans JP', 'メイリオ', Meiryo, sans-serif;
    --tcf-transition: 0.3s ease;

    font-family: var(--tcf-font);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ===== Noscript ===== */
.tcf-noscript {
    padding: 20px;
    text-align: center;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--tcf-radius);
    margin-bottom: 20px;
}

/* ===== Step Visibility ===== */
.tcf-step[hidden] {
    display: none !important;
}

/* ===== Step Header ===== */
.tcf-step-header {
    text-align: center;
    margin-bottom: 40px;
}

.tcf-step-header h3 {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: var(--tcf-font);
    font-weight: 400;
    font-size: 1.8rem;
    border-left: 0;
    text-align: center;
}

.tcf-step-header h3 em {
    display: block;
    padding-bottom: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 2.6rem;
    font-style: normal;
    color: var(--tcf-primary);
}

.tcf-step-header h3::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    margin: auto;
    width: 80px;
    height: 1px;
    background: #333;
}

.tcf-step-indicator {
    margin: 0 0 30px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--tcf-gray);
    letter-spacing: 0.1em;
}

/* ===== Progress Bar ===== */
.tcf-progress {
    width: 100%;
    max-width: 400px;
    height: 4px;
    margin: 0 auto 16px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.tcf-progress-bar {
    height: 100%;
    background: var(--tcf-primary);
    border-radius: 2px;
    transition: width var(--tcf-transition);
}

/* ===== Form Wrap ===== */
.tcf-form-wrap {
    width: 100%;
    padding: 0;
    background: transparent;
}

/* Theme override: prevent .form styles from leaking */
.tcf-form .tcf-item {
    margin-top: 0;
}

.tcf-form .tcf-item + .tcf-item {
    margin-top: 0;
}

/* ===== Items ===== */
.tcf-item {
    width: 100%;
    margin-bottom: 40px;
}

.tcf-item:last-of-type {
    margin-bottom: 0;
}

.tcf-item-half {
    max-width: 50%;
}

.tcf-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: bold;
    font-family: var(--tcf-font);
    font-size: 16px;
}

.tcf-required {
    display: inline-block;
    padding: 2px 10px;
    color: var(--tcf-white);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    background: var(--tcf-primary);
    border-radius: 10px;
    flex-shrink: 0;
}

.tcf-content {
    width: 100%;
}

/* ===== Inputs ===== */
.tcf-form input[type="text"],
.tcf-form input[type="email"],
.tcf-form input[type="tel"],
.tcf-form textarea,
.tcf-form select {
    width: 100%;
    padding: 20px 30px;
    background: var(--tcf-light);
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--tcf-font);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    outline: none;
    transition: all var(--tcf-transition);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.tcf-form input::placeholder,
.tcf-form textarea::placeholder {
    color: var(--tcf-border);
    font-weight: bold;
}

.tcf-form input:focus,
.tcf-form textarea:focus,
.tcf-form select:focus {
    border-color: var(--tcf-focus-border);
    background: var(--tcf-focus-bg);
}

.tcf-form input.-error,
.tcf-form textarea.-error {
    color: var(--tcf-error);
    background: rgba(237, 28, 36, 0.05);
    border-color: var(--tcf-error);
}

/* ===== Textarea with Ghost Overlay ===== */
.tcf-textarea-wrap {
    position: relative;
}

.tcf-textarea-wrap textarea {
    position: relative;
    z-index: 1;
    background: var(--tcf-light);
}

.tcf-ghost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 30px;
    font-family: var(--tcf-font);
    font-size: 16px;
    line-height: 1.6;
    color: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    overflow: hidden;
}

.tcf-ghost-overlay .tcf-ghost-typed {
    color: transparent;
}

.tcf-ghost-overlay .tcf-ghost-suggestion {
    color: #999;
    opacity: 0.7;
}

/* ===== Hint Text ===== */
.tcf-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--tcf-gray);
}

.tcf-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
    background: #e8e8e8;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 #bbb;
}

/* ===== Checkboxes ===== */
.tcf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.tcf-checkbox-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.tcf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tcf-checkbox-text {
    position: relative;
    padding-left: 34px;
    line-height: 24px;
}

.tcf-checkbox-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--tcf-light);
    border: 1px solid var(--tcf-border);
    transition: all var(--tcf-transition);
}

.tcf-checkbox-label input:checked + .tcf-checkbox-text::before {
    background: var(--tcf-primary);
    border-color: var(--tcf-primary);
}

.tcf-checkbox-label input:checked + .tcf-checkbox-text::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--tcf-white);
    border-bottom: 2px solid var(--tcf-white);
    transform: rotate(-45deg);
}

.tcf-checkbox-label input:focus-visible + .tcf-checkbox-text::before {
    outline: 2px solid var(--tcf-primary);
    outline-offset: 2px;
}

/* ===== Suggest Badge ===== */
.tcf-suggest-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tcf-primary);
    background: rgba(34, 76, 160, 0.1);
    border-radius: 10px;
    animation: tcf-badge-in 0.3s ease;
}

.tcf-suggest-badge[hidden] {
    display: none;
}

@keyframes tcf-badge-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Radio Buttons ===== */
.tcf-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.tcf-radio-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.tcf-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tcf-radio-text {
    position: relative;
    padding-left: 34px;
    line-height: 24px;
}

.tcf-radio-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--tcf-light);
    border: 1px solid var(--tcf-border);
    border-radius: 50%;
    transition: all var(--tcf-transition);
}

.tcf-radio-label input:checked + .tcf-radio-text::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 14px;
    height: 14px;
    background: var(--tcf-primary);
    border-radius: 50%;
}

.tcf-radio-label input:focus-visible + .tcf-radio-text::before {
    outline: 2px solid var(--tcf-primary);
    outline-offset: 2px;
}

/* ===== Select ===== */
.tcf-select-wrap {
    position: relative;
}

.tcf-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--tcf-gray);
    border-bottom: 2px solid var(--tcf-gray);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.tcf-form select {
    padding-right: 50px;
    cursor: pointer;
}

/* ===== Greyed-out Options ===== */
.tcf-option-greyed {
    color: #aaa;
}

/* ===== Error Messages ===== */
.tcf-error {
    margin-top: 8px;
    font-size: 14px;
    color: var(--tcf-error);
    min-height: 0;
}

.tcf-error:empty {
    margin: 0;
}

.tcf-submit-error {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(237, 28, 36, 0.05);
    border: 1px solid var(--tcf-error);
    border-radius: 6px;
    color: var(--tcf-error);
    font-size: 14px;
    text-align: center;
}

.tcf-submit-error[hidden] {
    display: none;
}

/* ===== Honeypot ===== */
.tcf-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ===== Template Panel ===== */
.tcf-template-trigger {
    margin-bottom: 16px;
}

.tcf-template-trigger[hidden] {
    display: none;
}

.tcf-template-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(34, 76, 160, 0.08);
    border: 1px dashed var(--tcf-primary);
    border-radius: 8px;
    color: var(--tcf-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tcf-transition);
    font-family: var(--tcf-font);
}

.tcf-template-btn:hover {
    background: rgba(34, 76, 160, 0.15);
}

.tcf-template-icon {
    font-size: 18px;
}

.tcf-template-panel {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--tcf-focus-bg);
    border: 1px solid var(--tcf-focus-border);
    border-radius: 8px;
    animation: tcf-slide-down 0.3s ease;
}

.tcf-template-panel[hidden] {
    display: none;
}

.tcf-template-preview {
    padding: 16px;
    margin-bottom: 16px;
    background: var(--tcf-white);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.tcf-template-use,
.tcf-template-close {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--tcf-font);
    transition: opacity var(--tcf-transition);
}

.tcf-template-use {
    background: var(--tcf-primary);
    color: var(--tcf-white);
    margin-right: 8px;
}

.tcf-template-close {
    background: #e0e0e0;
    color: #666;
}

.tcf-template-use:hover,
.tcf-template-close:hover {
    opacity: 0.8;
}

@keyframes tcf-slide-down {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

/* ===== Navigation Buttons ===== */
.tcf-nav[hidden] {
    display: none;
}

.tcf-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.tcf-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 50px;
    font-family: var(--tcf-font);
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 42px;
    cursor: pointer;
    transition: opacity var(--tcf-transition);
    line-height: 1.4;
}

.tcf-btn:hover {
    opacity: 0.7;
}

.tcf-btn:focus-visible {
    outline: 2px solid var(--tcf-primary);
    outline-offset: 3px;
}

.tcf-btn-next,
.tcf-btn-submit {
    min-width: 300px;
    color: var(--tcf-white);
    background: var(--tcf-primary);
}

.tcf-btn-back {
    min-width: 200px;
    color: var(--tcf-white);
    background: var(--tcf-gray);
}

.tcf-btn-home {
    min-width: 260px;
    color: var(--tcf-white);
    background: var(--tcf-primary);
}

.tcf-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.tcf-btn-loading[hidden] {
    display: none;
}

/* ===== Spinner ===== */
.tcf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--tcf-white);
    border-radius: 50%;
    animation: tcf-spin 0.6s linear infinite;
    vertical-align: middle;
}

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

/* ===== Skip Link ===== */
.tcf-step-note {
    text-align: right;
    margin-bottom: 30px;
}

.tcf-skip-link {
    color: var(--tcf-primary);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed var(--tcf-primary);
    padding-bottom: 2px;
    transition: opacity var(--tcf-transition);
}

.tcf-skip-link:hover {
    opacity: 0.7;
}

/* ===== Confirm Table ===== */
.tcf-confirm-table {
    margin-bottom: 20px;
}

.tcf-confirm-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.tcf-confirm-row:first-child {
    border-top: 1px solid #eee;
}

.tcf-confirm-label {
    width: 200px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--tcf-gray);
    font-size: 14px;
}

.tcf-confirm-value {
    flex: 1;
    font-weight: 600;
    word-break: break-word;
}

.tcf-confirm-message {
    white-space: pre-wrap;
}

/* ===== AI Summary Card ===== */
.tcf-ai-summary {
    margin-bottom: 40px;
    border: 1px solid var(--tcf-focus-border);
    border-radius: 8px;
    overflow: hidden;
    animation: tcf-fade-in 0.5s ease;
}

.tcf-ai-summary[hidden] {
    display: none;
}

.tcf-ai-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(34, 76, 160, 0.06);
    font-size: 14px;
    font-weight: 600;
    color: var(--tcf-primary);
}

.tcf-ai-icon {
    font-size: 18px;
}

.tcf-ai-summary-body {
    padding: 16px 20px;
}

.tcf-ai-summary-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.tcf-ai-loading {
    display: flex;
    align-items: center;
    color: var(--tcf-gray);
    font-size: 14px;
}

.tcf-ai-loading .tcf-spinner {
    border-color: rgba(112,112,112,0.3);
    border-top-color: var(--tcf-gray);
}

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

/* ===== Trust Signals ===== */
.tcf-trust-signals {
    margin: 30px 0;
    padding: 20px 24px;
    background: rgba(46, 125, 50, 0.04);
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 8px;
}

.tcf-trust-signals ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.tcf-trust-signals li {
    font-size: 13px;
    color: #2e7d32;
    line-height: 1.6;
}

.tcf-trust-signals li::before {
    content: '\2713\0020';
    font-weight: 700;
}

/* ===== Thanks ===== */
.tcf-thanks-wrap {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.tcf-thanks-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--tcf-primary);
    color: var(--tcf-white);
    font-size: 36px;
    border-radius: 50%;
    animation: tcf-pop 0.5s ease;
}

@keyframes tcf-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.tcf-thanks-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tcf-thanks-note {
    font-size: 14px;
    color: var(--tcf-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.tcf-thanks-action {
    margin-top: 30px;
}

/* ===== Tier Selection ===== */
.tcf-tier-selection {
    margin-bottom: 40px;
    animation: tcf-fade-in 0.4s ease;
}

.tcf-tier-selection[hidden] {
    display: none;
}

.tcf-tier-heading {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
}

.tcf-tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tcf-tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    background: var(--tcf-white);
    border: 2px solid #e0e0e0;
    border-radius: var(--tcf-radius);
    cursor: pointer;
    font-family: var(--tcf-font);
    transition: all var(--tcf-transition);
}

.tcf-tier-card:hover {
    border-color: var(--tcf-primary);
    box-shadow: 0 4px 16px rgba(34, 76, 160, 0.12);
    transform: translateY(-2px);
}

.tcf-tier-card.tcf-tier-active {
    border-color: var(--tcf-primary);
    background: rgba(34, 76, 160, 0.04);
    box-shadow: 0 4px 20px rgba(34, 76, 160, 0.18);
}

.tcf-tier-card:focus-visible {
    outline: 2px solid var(--tcf-primary);
    outline-offset: 3px;
}

.tcf-tier-badge-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tcf-white);
    background: var(--tcf-primary);
    border-radius: 20px;
    white-space: nowrap;
}

.tcf-tier-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1;
}

.tcf-tier-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.tcf-tier-time {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tcf-primary);
    margin-bottom: 10px;
}

.tcf-tier-desc {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--tcf-gray);
}

/* ===== Step Description ===== */
.tcf-step-description {
    text-align: center;
    font-size: 15px;
    color: var(--tcf-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== Detailed Questions Section ===== */
.tcf-detailed-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tcf-detailed-section:last-child {
    border-bottom: none;
}

.tcf-detailed-section-title {
    display: inline-block;
    margin: 0 0 24px;
    padding: 6px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tcf-primary);
    background: rgba(34, 76, 160, 0.06);
    border-radius: 6px;
    border-left: 0;
}

/* ===== Confirm Detailed Section ===== */
.tcf-confirm-detailed {
    margin-bottom: 24px;
}

.tcf-confirm-detailed[hidden] {
    display: none;
}

.tcf-confirm-detailed-section {
    margin-bottom: 20px;
}

.tcf-confirm-detailed-title {
    display: inline-block;
    padding: 4px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tcf-primary);
    background: rgba(34, 76, 160, 0.06);
    border-radius: 4px;
}

/* ===== AI Chat ===== */
.tcf-chat {
    margin-bottom: 20px;
}

.tcf-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--tcf-light);
    border-radius: var(--tcf-radius);
    min-height: 120px;
}

.tcf-chat-bubble {
    max-width: 85%;
    padding: 14px 20px;
    margin-bottom: 12px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.7;
    animation: tcf-fade-in 0.3s ease;
}

.tcf-chat-ai {
    background: var(--tcf-white);
    border: 1px solid #e0e0e0;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.tcf-chat-user {
    background: var(--tcf-primary);
    color: var(--tcf-white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.tcf-chat-input-area {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.tcf-chat-input-area[hidden] {
    display: none;
}

.tcf-chat-textarea {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--tcf-font);
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--tcf-border);
    border-radius: 12px;
    background: var(--tcf-white);
    resize: none;
    outline: none;
    transition: border-color var(--tcf-transition);
}

.tcf-chat-textarea:focus {
    border-color: var(--tcf-primary);
}

.tcf-chat-send {
    padding: 14px 24px;
    font-family: var(--tcf-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--tcf-white);
    background: var(--tcf-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity var(--tcf-transition);
    white-space: nowrap;
}

.tcf-chat-send:hover {
    opacity: 0.8;
}

.tcf-chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--tcf-gray);
    font-size: 14px;
}

.tcf-chat-loading[hidden] {
    display: none;
}

.tcf-chat-loading .tcf-spinner {
    border-color: rgba(112,112,112,0.3);
    border-top-color: var(--tcf-gray);
}

.tcf-chat-error {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--tcf-gray);
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.tcf-chat-error[hidden] {
    display: none;
}

.tcf-chat-complete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 8px;
}

.tcf-chat-complete[hidden] {
    display: none;
}

.tcf-chat-complete-icon {
    font-size: 20px;
}

/* Nav with right-aligned items */
.tcf-nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ===== Quick Submit Section ===== */
.tcf-quick-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--tcf-gray);
    font-size: 14px;
}

.tcf-quick-divider::before,
.tcf-quick-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.tcf-quick-divider span {
    padding: 0 16px;
}

.tcf-quick-trigger {
    text-align: center;
    margin-bottom: 20px;
}

.tcf-quick-link {
    display: inline-block;
    padding: 12px 28px;
    color: var(--tcf-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--tcf-font);
    background: rgba(34, 76, 160, 0.06);
    border: 1px dashed var(--tcf-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--tcf-transition);
}

.tcf-quick-link:hover {
    background: rgba(34, 76, 160, 0.12);
}

.tcf-quick-desc {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--tcf-gray);
}

.tcf-quick-panel {
    margin-top: 10px;
    padding: 30px;
    background: var(--tcf-white);
    border: 2px solid var(--tcf-primary);
    border-radius: var(--tcf-radius);
    animation: tcf-slide-down 0.3s ease;
}

.tcf-quick-panel[hidden] {
    display: none;
}

.tcf-quick-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tcf-primary);
}

.tcf-quick-icon {
    font-size: 22px;
}

.tcf-quick-time {
    font-size: 14px;
    font-weight: 400;
    color: var(--tcf-gray);
}

.tcf-quick-note {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.tcf-optional {
    display: inline-block;
    padding: 2px 10px;
    color: var(--tcf-primary);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    background: rgba(34, 76, 160, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.tcf-quick-panel .tcf-nav {
    margin-top: 30px;
}

.tcf-quick-detail-link {
    text-align: center;
    margin: 16px 0 0;
    font-size: 14px;
}

.tcf-quick-detail-link a {
    color: var(--tcf-gray);
    text-decoration: none;
    border-bottom: 1px dashed var(--tcf-gray);
    padding-bottom: 2px;
    transition: color var(--tcf-transition);
}

.tcf-quick-detail-link a:hover {
    color: var(--tcf-primary);
    border-color: var(--tcf-primary);
}

/* ===== Step Transition ===== */
.tcf-step-enter {
    animation: tcf-step-in 0.4s ease forwards;
}

@keyframes tcf-step-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.tcf-step-leave {
    animation: tcf-step-out 0.3s ease forwards;
}

@keyframes tcf-step-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .tcf-form *,
    .tcf-form *::before,
    .tcf-form *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
    .tcf-form-wrap {
        padding: 30px 20px 40px;
    }

    .tcf-step-header h3 {
        font-size: 1.6rem;
    }

    .tcf-step-header h3 em {
        font-size: 2.2rem;
    }

    .tcf-form input[type="text"],
    .tcf-form input[type="email"],
    .tcf-form input[type="tel"],
    .tcf-form textarea,
    .tcf-form select {
        padding: 15px;
    }

    .tcf-ghost-overlay {
        padding: 15px;
    }

    .tcf-item-half {
        max-width: 100%;
    }

    .tcf-checkbox-group {
        flex-direction: column;
        gap: 4px;
    }

    .tcf-checkbox-text {
        padding-left: 28px;
        font-size: 14px;
    }

    .tcf-checkbox-text::before {
        width: 20px;
        height: 20px;
    }

    .tcf-checkbox-label input:checked + .tcf-checkbox-text::after {
        top: 4px;
        left: 4px;
        width: 12px;
        height: 6px;
    }

    .tcf-radio-text {
        padding-left: 28px;
        font-size: 14px;
    }

    .tcf-radio-text::before {
        width: 20px;
        height: 20px;
    }

    .tcf-radio-label input:checked + .tcf-radio-text::after {
        top: 4px;
        left: 4px;
        width: 12px;
        height: 12px;
    }

    .tcf-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .tcf-btn {
        width: 100%;
        min-width: 0;
        padding: 16px 30px;
    }

    .tcf-btn-next,
    .tcf-btn-submit,
    .tcf-btn-back,
    .tcf-btn-home {
        min-width: 0;
    }

    .tcf-confirm-row {
        flex-direction: column;
        gap: 6px;
    }

    .tcf-confirm-label {
        width: 100%;
        font-size: 13px;
    }

    .tcf-thanks-text {
        font-size: 18px;
    }

    .tcf-template-panel {
        padding: 16px;
    }

    .tcf-template-preview {
        font-size: 13px;
    }

    .tcf-tier-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tcf-tier-card {
        flex-direction: row;
        text-align: left;
        padding: 16px 20px;
        gap: 12px;
    }

    .tcf-tier-icon {
        font-size: 24px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .tcf-tier-card .tcf-tier-name,
    .tcf-tier-card .tcf-tier-time,
    .tcf-tier-card .tcf-tier-desc {
        text-align: left;
    }

    .tcf-tier-name {
        font-size: 16px;
    }

    .tcf-tier-badge-label {
        top: -10px;
        left: auto;
        right: 12px;
        transform: none;
        font-size: 11px;
        padding: 2px 12px;
    }

    .tcf-chat-input-area {
        flex-direction: column;
    }

    .tcf-chat-send {
        width: 100%;
    }

    .tcf-chat-bubble {
        max-width: 95%;
    }

    .tcf-nav-right {
        flex-direction: column-reverse;
        width: 100%;
        gap: 12px;
    }

    .tcf-nav-right .tcf-btn {
        width: 100%;
    }
}
