/* ==================== CONTACT TERMINAL ==================== */
.contact-terminal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.contact-terminal.active {
    opacity: 1;
    visibility: visible;
}

.contact-terminal__window {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-terminal.active .contact-terminal__window {
    transform: scale(1) translateY(0);
}

/* Terminal Header */
.terminal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.terminal__dots {
    display: flex;
    gap: 8px;
}

.terminal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.terminal__dot:hover {
    transform: scale(1.2);
}

.terminal__dot--close {
    background: #ff5f57;
}

.terminal__dot--minimize {
    background: #febc2e;
}

.terminal__dot--maximize {
    background: #28c840;
}

.terminal__title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-muted);
}

.terminal__actions {
    display: flex;
    gap: 8px;
}

/* Terminal Body */
.terminal__body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
}

/* Terminal Output */
.terminal__output {
    margin-bottom: 20px;
}

.terminal__line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: terminalLineIn 0.3s var(--ease-out-expo) forwards;
}

@keyframes terminalLineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal__line--system {
    color: var(--color-text-muted);
}

.terminal__line--success {
    color: var(--color-success);
}

.terminal__line--error {
    color: var(--color-error);
}

.terminal__line--info {
    color: var(--color-accent-secondary);
}

.terminal__prompt {
    color: var(--color-accent);
    font-weight: 500;
}

.terminal__prompt::after {
    content: ' ~$';
    color: var(--color-text-muted);
}

.terminal__command {
    color: var(--color-text);
}

.terminal__response {
    color: var(--color-text-secondary);
    padding-left: 16px;
    border-left: 2px solid var(--color-border);
    margin: 8px 0 8px 8px;
}

/* Terminal Input Area */
.terminal__input-area {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.terminal__input-prompt {
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    flex-shrink: 0;
}

.terminal__input-prompt::after {
    content: ' ~$';
    color: var(--color-text-muted);
}

.terminal__input {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text);
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 24px;
}

.terminal__input::placeholder {
    color: var(--color-text-muted);
}

.terminal__submit {
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-bg);
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.terminal__submit:hover {
    background: var(--color-accent-dark);
}

.terminal__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Steps */
.terminal__step {
    margin-bottom: 16px;
}

.terminal__label {
    color: var(--color-accent-secondary);
    margin-bottom: 4px;
}

.terminal__value {
    color: var(--color-text);
}

.terminal__value--pending {
    color: var(--color-text-muted);
}

.terminal__value--pending::after {
    content: '▋';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Progress Indicator */
.terminal__progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.terminal__progress-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.terminal__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.terminal__progress-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    min-width: 40px;
    text-align: right;
}

/* ASCII Art */
.terminal__ascii {
    color: var(--color-accent);
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* Typing Animation */
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Success Animation */
.terminal__success {
    text-align: center;
    padding: 40px 20px;
}

.terminal__success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s var(--ease-out-expo);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.terminal__success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.terminal__success-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.terminal__success-text {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}
