/* ========================================
   QUETIMNET - CUSTOM STYLES
   ======================================== */

/* Variáveis CSS */
:root {
    --primary-color: #0A428B;
    --secondary-color: #ffcc29;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.section-spacing {
    padding: 5rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.section-head.text-start {
    text-align: left;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0d2445 0%, #0a428b 100%);
    color: var(--white-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/emoji.png') no-repeat 90% 10%;
    opacity: 0.08;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin: 1rem 0;
}

.hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-cta .btn {
    border-radius: 999px;
    padding: 0.9rem 1.8rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.hero-meta .meta-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-meta .meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.status-card {
    background: var(--white-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    color: var(--dark-color);
    position: relative;
    z-index: 2;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.status-grid span {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.status-grid strong {
    display: block;
    font-size: 1.6rem;
    margin-top: 0.2rem;
}

.period-dot {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 3px solid #fff;
}

/* CTA cards */
.cta-card {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-card ul {
    padding-left: 1.2rem;
    color: var(--gray-color);
}

.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.icon-circle.sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.timeline-item {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.timeline-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(10, 66, 139, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Documentos */
.document-card {
    background: var(--white-color);
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.document-card h4 {
    font-size: 1.1rem;
    margin: 0.8rem 0;
}

/* Period list */
.period-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.period-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.period-list strong {
    display: block;
    font-size: 1rem;
}

.period-list span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Contact */
.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card span {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gray-color);
    letter-spacing: 0.1em;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.cta-final {
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.cta-final .btn {
    border-radius: 999px;
}

/* Tracking */
.tracking-result {
    border-radius: 1rem;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tracking-status {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.doc-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-status-list li {
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.doc-status-list strong {
    font-size: 0.95rem;
}

.tracking-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--gray-color);
}

.login-page {
    background: linear-gradient(135deg, rgba(10, 66, 139, 0.05), rgba(10, 66, 139, 0.15));
    min-height: 100vh;
}

.login-card {
    border-radius: 1rem;
}

.aluno-area {
    background: var(--light-color);
    min-height: 100vh;
}

/* Cadastro form */
.step-indicator {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.step-indicator li {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-color);
    transition: var(--transition);
}

.step-indicator li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid currentColor;
    margin-bottom: 0.3rem;
}

.step-indicator li.active,
.step-indicator li.complete {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(10, 66, 139, 0.08);
}

.form-step {
    display: none;
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.step-actions .btn {
    flex: 1 1 200px;
}

.file-upload-card {
    border: 1px dashed var(--border-color);
    border-radius: 0.85rem;
    padding: 1.5rem;
    display: block;
    cursor: pointer;
    position: relative;
    background: rgba(248, 249, 250, 0.9);
}

.file-upload-card.has-file {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.08);
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.15);
}

.file-upload-card .label-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.file-upload-card .file-name {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
}

.file-upload-card.has-file .file-name {
    color: #0f5132;
}

.file-upload-card small {
    display: block;
    color: var(--gray-color);
}

.file-upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.info-card {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 66, 139, 0.45) transparent;
}

.info-card::-webkit-scrollbar {
    width: 8px;
}

.info-card::-webkit-scrollbar-thumb {
    background: rgba(10, 66, 139, 0.45);
    border-radius: 10px;
}

.info-card::-webkit-scrollbar-track {
    background: transparent;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card li strong {
    display: block;
    font-size: 1rem;
}

.info-card li p {
    margin: 0.3rem 0 0;
    color: var(--gray-color);
}

.required-docs-list {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.required-doc-item {
    border-left: 3px solid #dc3545;
    padding-left: 0.65rem;
}

.required-doc-title {
    display: block;
    font-weight: 600;
    color: #1c2333;
    line-height: 1.25;
}

.required-doc-desc {
    display: block;
    color: #dc3545;
    line-height: 1.35;
    margin-top: 0.15rem;
}

/* Parsley validation */
.parsley-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.12);
}

.parsley-success {
    border-color: #198754 !important;
}

.parsley-errors-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
}

.parsley-errors-list li {
    margin: 0;
    line-height: 1.3;
}

/* Utility */
.bg-primary-subtle {
    background: rgba(10, 66, 139, 0.12) !important;
}

.bg-warning-subtle {
    background: rgba(255, 204, 41, 0.15) !important;
}

.bg-secondary-subtle {
    background: rgba(33, 37, 41, 0.08) !important;
}

@media (max-width: 767px) {
    .hero, .section-spacing {
        padding: 3.5rem 0;
    }

    .info-card {
        max-height: none;
        overflow: visible;
    }

    .status-card {
        margin-top: 2rem;
    }

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

    .cta-card {
        padding: 1.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .step-indicator {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column;
    }
}
