/* ============================================
   DZETA MEDIA - Application Form Styles
   ============================================ */

/* Page Layout */
.apply-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: var(--spacing-3xl);
    background: var(--bg-primary);
}

.apply-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.apply-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.apply-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.apply-badge .badge-icon {
    font-size: 1rem;
}

.apply-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.apply-title .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apply-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Progress Bar */
.form-progress {
    margin-bottom: var(--spacing-2xl);
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    width: 16.66%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-xs);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: var(--transition-base);
    flex: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--gradient-gold);
    border-color: var(--gold);
    color: #000;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--gold);
}

.progress-step.completed .step-number::after {
    content: '\2713';
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.section-icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
}

.section-header-form h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-header-form p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group .required {
    color: #ef4444;
}

.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: -4px;
}

/* Input Styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio & Checkbox Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.radio-option:hover,
.checkbox-option:hover {
    background: rgba(201, 162, 39, 0.05);
}

.radio-option input,
.checkbox-option input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    position: relative;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    transition: var(--transition-base);
}

.checkbox-custom::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    transition: var(--transition-base);
}

.radio-option input:checked + .radio-custom,
.checkbox-option input:checked + .checkbox-custom {
    border-color: var(--gold);
    background: var(--gold);
}

.radio-option input:checked + .radio-custom::after,
.checkbox-option input:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Card Options */
.card-option {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition-base);
}

.card-option:hover {
    border-color: rgba(201, 162, 39, 0.3);
    background: rgba(201, 162, 39, 0.05);
}

.card-option input:checked ~ .card-content {
    color: var(--gold);
}

.card-option input:checked + .card-content,
.card-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-xs);
}

.checkbox-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.checkbox-option span:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-base);
    background: var(--bg-card);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.05);
}

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

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.upload-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
}

.upload-placeholder span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.8rem !important;
}

.preview-container {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Consent Box */
.consent-box {
    background: rgba(201, 162, 39, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.consent-checkbox {
    align-items: flex-start;
}

.consent-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.consent-text strong {
    color: var(--gold);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.btn-prev,
.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    animation: fadeInUp 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #22c55e;
}

.success-message h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.success-message p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

/* Footer */
.apply-footer {
    padding: var(--spacing-lg) 0;
}

.apply-footer .footer-bottom {
    padding-top: 0;
    border-top: none;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        gap: 0;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .radio-group.horizontal {
        flex-direction: column;
    }

    .card-option {
        min-width: 100%;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .section-header-form {
        flex-direction: column;
        text-align: center;
    }

    .form-navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .form-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .apply-container {
        padding: 0 var(--spacing-sm);
    }

    .apply-title {
        font-size: 1.75rem;
    }

    .section-icon {
        width: 48px;
        height: 48px;
    }

    .section-header-form h2 {
        font-size: 1.25rem;
    }
}
