* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    padding-top: 64px;
}

/* CABEÇALHO */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.voltar {
    display: inline-flex;
    align-items: center;
    background: none;
    color: #4b5563;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    text-align: left;
    gap: 6px;
}

.voltar:hover {
    color: #f97316;
}

/* CONTEÚDO PRINCIPAL */

.principal {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
}

.grad-laranja {
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
}

.superior-form,
.inferior-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding-top: 4rem;
}

.inferior-form {
    padding-top: 0;
}

.superior-form h2 {
    color: #111827;
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.superior-form p {
    color: #4b5563;
}

.icone {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.6rem;
    color: #fff;
}

.card-form {
    background-color: #fff;
    padding: 3.5rem;
    border-radius: 0.6rem;
    width: 620px;
    margin: 4rem auto;
    box-shadow:
        0 12.5px 25px rgba(0,0,0,0.12),
        0 2px 6px rgba(0,0,0,0.05);
}

.campo-form,
.grupo-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px;
}

fieldset {
    margin-bottom: 0 !important;
}

.campo-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.campo-form legend {
    color: #111827;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.campo-form input,
.campo-form select {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #111827;
}

.campo-form input::placeholder {
	font-family: "Plus Jakarta Sans", sans-serif;
    color: #9ca3af;
}

.campo-form input:focus,
.campo-form select:focus {
    border:2px solid #f97316;
    outline: none;
}

select {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
}

.linha-dupla {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.campo-form textarea {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #111827;
    resize: none;
    min-height: 100px;
    font-family: "Plus Jakarta Sans", sans-serif;
    margin-bottom: 16px;
}

.campo-form textarea::placeholder {
    color: #9ca3af;
}

.campo-form textarea:focus {
    border: 2px solid #f97316;
    outline: none;
}

.campo-vazio {
    border: 2px solid #d97706 !important;
    background-color: #fff4e6 !important;
}

.select-limite {
    background-color: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
    cursor: not-allowed;
}

.btn-enviar {
    margin-top: -1rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
    border: none;
    border-radius: 0.6rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-enviar:hover {
    filter: brightness(1.05);
    transition: background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    transform: scale(1.06);
}

.obs-form {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* TAGS */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: #d97706;
    color: #fff;
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-transform:initial;
}

.tag span {
    line-height: 1;
}

.tag button {
    all: unset;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: background 0.15s ease;
}

.tag button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* FEITO POR */

.feito-por {
    font-size: 0.8rem;
    margin-top: -20px;
    margin-bottom: 48px;
}

.feito-por a {
    color: #ea580c;
    text-decoration: none;
}

.feito-por a:hover {
    text-decoration: underline;
}


/* RESPONSIVO */
@media (max-width: 900px) {
    .principal {
        padding: 0 1rem;
    }   

    /* FORMULÁRIO */
    .superior-form {
        padding-top: 3rem;
        gap: 12px;
    }

    .superior-form h2 {
        font-size: 1.5rem;
        line-height: 2rem;
        text-align: center;
    }

    .superior-form p {
        font-size: 0.95rem;
        text-align: center;
    }

    .superior-form .icone {
        width: 56px;
        height: 56px;
    }

    .card-form {
        width: 100%;
        padding: 2rem 1.5rem;
        margin: 2.5rem auto;
        border-radius: 0.8rem;
    }

    .campo-form,
    .grupo-select {
        margin-bottom: 22px;
    }

    .linha-dupla {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .btn-enviar {
        margin-top: 0;
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .obs-form {
        font-size: 0.8rem;
    }

    .feito-por {
        margin-top: -8px;
        margin-bottom: 32px;
        text-align: center;
    }   
}