/* ============================================
   ATACAJUNTO APP - Trabalhe Conosco 样式
   css/pages/trabalhe-conosco.css
   ============================================ */

/* ===========================
   首页横幅
   =========================== */
.trabalhe-conosco-banner {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin: 10px 10px 10px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.trabalhe-conosco-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.trabalhe-conosco-banner:hover,
.trabalhe-conosco-banner:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.trabalhe-conosco-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.trabalhe-conosco-banner__text {
    flex: 1;
}

.trabalhe-conosco-banner__title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trabalhe-conosco-banner__title i {
    font-size: 1.2rem;
}

.trabalhe-conosco-banner__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 400;
}

.trabalhe-conosco-banner__arrow {
    color: var(--text-white);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: transform var(--transition-fast);
}

.trabalhe-conosco-banner:hover .trabalhe-conosco-banner__arrow {
    transform: translateX(4px);
}

/* ===========================
   页面容器
   =========================== */
.tc-page {
    min-height: 100vh;
    background-color: var(--bg-light);
    padding-bottom: calc(var(--nav-bottom-height) + var(--safe-area-bottom) + 20px);
}

.tc-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px 16px;
    padding-top: calc(20px + var(--safe-area-top));
    color: var(--text-white);
}

.tc-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.tc-header__back:hover {
    opacity: 1;
    color: var(--text-white);
}

.tc-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tc-header__subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===========================
   步骤指示器
   =========================== */
.tc-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.tc-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-step__number {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tc-step.active .tc-step__number {
    background: var(--primary);
    color: var(--text-white);
}

.tc-step.completed .tc-step__number {
    background: var(--success);
    color: var(--text-white);
}

.tc-step__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: none;
}

.tc-step.active .tc-step__label {
    color: var(--text-primary);
    font-weight: 500;
}

.tc-step__divider {
    width: 40px;
    height: 2px;
    background: var(--border-light);
    margin: 0 12px;
}

.tc-step.completed + .tc-step__divider,
.tc-step.completed ~ .tc-step__divider {
    background: var(--success);
}

@media (min-width: 480px) {
    .tc-step__label {
        display: block;
    }
}

/* ===========================
   内容区域
   =========================== */
.tc-content {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
}

/* ===========================
   店铺选择卡片
   =========================== */
.tc-loja-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.tc-loja-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.tc-loja-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.tc-loja-card.selected {
    border-color: var(--primary);
    background: var(--primary-alpha);
}

.tc-loja-card__icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tc-loja-card.selected .tc-loja-card__icon {
    background: var(--primary);
    color: var(--text-white);
}

.tc-loja-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tc-loja-card__address {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===========================
   类型选择按钮
   =========================== */
.tc-tipo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.tc-tipo-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.tc-tipo-btn:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.tc-tipo-btn.selected {
    border-color: var(--primary);
    background: var(--primary-alpha);
}

.tc-tipo-btn__icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.tc-tipo-btn.selected .tc-tipo-btn__icon {
    color: var(--primary);
}

.tc-tipo-btn__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tc-tipo-btn__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===========================
   表单样式
   =========================== */
.tc-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tc-form-group {
    margin-bottom: 16px;
}

.tc-form-group:last-child {
    margin-bottom: 0;
}

.tc-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.tc-form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.tc-form-input,
.tc-form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tc-form-input:focus,
.tc-form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.tc-form-input::placeholder {
    color: var(--text-muted);
}

.tc-form-input.error,
.tc-form-select.error {
    border-color: var(--error);
}

.tc-form-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.tc-form-group.has-error .tc-form-error {
    display: block;
}

/* ===========================
   文件上传
   =========================== */
.tc-file-upload {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.tc-file-upload:hover {
    border-color: var(--primary-light);
    background: var(--primary-alpha);
}

.tc-file-upload.dragover {
    border-color: var(--primary);
    background: var(--primary-alpha);
}

.tc-file-upload.has-file {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.05);
}

.tc-file-upload__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tc-file-upload__icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.tc-file-upload.has-file .tc-file-upload__icon {
    color: var(--success);
}

.tc-file-upload__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tc-file-upload__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tc-file-upload__preview {
    display: none;
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tc-file-upload.has-file .tc-file-upload__preview {
    display: block;
}

.tc-file-upload__preview i {
    margin-right: 6px;
    color: var(--success);
}

.tc-file-upload__remove {
    display: inline-block;
    margin-left: 10px;
    color: var(--error);
    cursor: pointer;
    font-size: 0.8rem;
}

.tc-file-upload__remove:hover {
    text-decoration: underline;
}

/* ===========================
   按钮
   =========================== */
.tc-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.tc-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

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

.tc-btn--primary {
    background: var(--primary);
    color: var(--text-white);
}

.tc-btn--primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.tc-btn--secondary {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.tc-btn--secondary:hover:not(:disabled) {
    background: var(--border-light);
}

.tc-btn--full {
    width: 100%;
}

/* ===========================
   成功页面
   =========================== */
.tc-success {
    text-align: center;
    padding: 40px 20px;
}

.tc-success__icon {
    width: 80px;
    height: 80px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tc-success__icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.tc-success__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tc-success__message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ===========================
   提示信息
   =========================== */
.tc-info-box {
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 20px;
}

.tc-info-box__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tc-info-box__text i {
    color: var(--info);
    margin-right: 6px;
}

.tc-warning-box {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 20px;
}

.tc-warning-box__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tc-warning-box__text i {
    color: var(--warning);
    margin-right: 6px;
}

/* ===========================
   Loading 状态
   =========================== */
.tc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.tc-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: tc-spin 0.8s linear infinite;
}

.tc-loading__text {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* ===========================
   响应式调整
   =========================== */
@media (max-width: 380px) {
    .tc-loja-grid,
    .tc-tipo-grid {
        grid-template-columns: 1fr;
    }
    
    .tc-btn-group {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .tc-content {
        padding: 30px 20px;
    }
    
    .tc-form {
        padding: 30px;
    }
    
    .trabalhe-conosco-banner {
        margin: 10px 20px auto;
        max-width: calc(100% - 32px);
    }
}
