/* ==========================================================
 * TOS360 Growth Form Styles
 * Dark, Neon Green Cyber Concept
 * ========================================================== */

.tos-growth-form-wrapper {
    background: #0f1115;
    border: 1px solid #1a1e24;
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    font-family: var(--wp--preset--font-family--inter, sans-serif);
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.tos-growth-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wp--preset--color--accent-1, #00FF66), transparent);
}

.tos-gf-loader, 
.tos-gf-message {
    text-align: center;
    font-family: var(--wp--preset--font-family--jetbrains-mono, monospace);
    color: var(--wp--preset--color--accent-1, #00FF66);
    letter-spacing: 2px;
    font-size: 14px;
    padding: 20px;
    animation: tosGfpulse 2s infinite;
}

@keyframes tosGfpulse {
    0% { opacity: 0.5; text-shadow: 0 0 10px rgba(0,255,102,0.1); }
    50% { opacity: 1; text-shadow: 0 0 20px rgba(0,255,102,0.5); }
    100% { opacity: 0.5; text-shadow: 0 0 10px rgba(0,255,102,0.1); }
}

.tos-gf-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    animation: tosGfFadeIn 0.4s forwards ease;
}

.tos-gf-step.active {
    display: block;
}

@keyframes tosGfFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.tos-gf-question-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #fff;
}

.tos-gf-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tos-gf-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #171a1f;
    border: 1px solid #2a2f38;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tos-gf-option:hover {
    border-color: var(--wp--preset--color--accent-1, #00FF66);
    background: rgba(0, 255, 102, 0.03);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

.tos-gf-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--wp--preset--color--accent-1, #00FF66);
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
}

.tos-gf-option input[type="radio"]:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-1, #00FF66);
    outline-offset: 2px;
}

.tos-gf-option span {
    font-size: 16px;
    font-weight: 500;
}

.tos-gf-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid #1a1e24;
    padding-top: 20px;
}

.tos-gf-progress {
    font-family: var(--wp--preset--font-family--jetbrains-mono, monospace);
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 1px;
}

.tos-gf-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--accent-1, #00FF66);
    color: var(--wp--preset--color--accent-1, #00FF66);
    font-family: var(--wp--preset--font-family--jetbrains-mono, monospace);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tos-gf-btn:hover {
    background: var(--wp--preset--color--accent-1, #00FF66);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.tos-gf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    color: #00FF66;
    box-shadow: none;
}

.tos-gf-action-group {
    margin-bottom: 24px;
}

.tos-gf-action-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #9ca3af;
}

.tos-gf-input {
    width: 100%;
    background: #171a1f;
    border: 1px solid #2a2f38;
    color: #fff;
    padding: 12px 14px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    min-height: 44px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.tos-gf-input::placeholder {
    color: #6b7280;
}

.tos-gf-input:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-1, #00FF66);
    outline-offset: 2px;
    border-color: var(--wp--preset--color--accent-1, #00FF66);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tos-growth-form-wrapper {
        padding: 20px;
    }

    .tos-gf-action-card {
        flex: 1 1 calc(50% - 8px);
    }

    .tos-gf-question-title {
        font-size: 18px;
    }
}

.tos-gf-result-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--wp--preset--color--accent-1, #00FF66);
    margin-bottom: 10px;
}

.tos-gf-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.tos-gf-action-card {
    flex: 1 1 calc(33.3% - 10px);
    background: #171a1f;
    border: 1px solid #2a2f38;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tos-gf-action-card:hover, .tos-gf-action-card.selected {
    border-color: var(--wp--preset--color--accent-1, #00FF66);
    background: rgba(0, 255, 102, 0.05);
}

.tos-gf-action-card h4 {
    margin: 0 0 10px 0;
    font-family: var(--wp--preset--font-family--jetbrains-mono, monospace);
    font-size: 14px;
    color: #fff;
}

.tos-gf-action-card p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

/* Terminal Effect Override */
.tos-gf-terminal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-family: var(--wp--preset--font-family--jetbrains-mono, monospace);
    color: var(--wp--preset--color--accent-1, #00FF66);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tos-gf-terminal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tos-gf-terminal-logs-container {
    max-width: 80%;
    margin: 0 auto;
}

.tos-gf-terminal-log {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
    text-shadow: 0 0 5px currentColor;
}

.tos-gf-terminal-log.show {
    opacity: 1;
    transform: translateY(0);
}

.tos-gf-terminal-log.warn { color: #f59e0b; }
.tos-gf-terminal-log.fail { color: #ef4444; }
.tos-gf-terminal-log.ok { color: #10b981; }

/* V4 Specific Added Styles */
.v4-sector-opt { font-size: 18px; padding: 20px; }
.v4-platform-opt { font-size: 18px; padding: 20px; }
.v4-inputs-group {
    background: #171a1f;
    border: 1px solid #2a2f38;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-sizing: border-box;
}
.v4-btn-next-step3 {
    width: 100%;
    margin-top: 15px;
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--wp--preset--color--accent-1, #00FF66);
    color: var(--wp--preset--color--accent-1, #00FF66);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.v4-btn-next-step3:hover {
    background: var(--wp--preset--color--accent-1, #00FF66);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.v4-btn-next-step3:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-1, #00FF66);
    outline-offset: 2px;
}

@media(max-width: 768px) {
    .tos-growth-form-wrapper { padding: 25px; }
    .tos-gf-action-card { flex: 1 1 100%; }
}
