:root {
    --cor-azul: #2563EB;
    --cor-azul-escuro: #0F172A;
    --bg-color: #F8FAFC;
    --card-bg: #ffffff;
    --text-color: #334155;
    --header-bg: #FFFFFF;
    --footer-bg: #1E293B;
    --footer-text: #F1F5F9;
    --header-height: 160px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: none;
    /* Removed gradients */
    color: var(--text-color);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header & Footer --- */
header,
footer {
    padding: 20px 0;
    width: 100%;
}

header {
    background: var(--header-bg);
    border-bottom: 1px solid #E2E8F0;
    padding: 0;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.banner-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.banner {
    width: 728px;
    height: 90px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #E2E8F0;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mensagem {
    text-align: justify;
    max-width: 750px;
    width: 100%;
    margin: auto;
}

@media (max-width: 768px) {
    .mensagem {
        text-align: center;
        padding: 0 15px;
        font-size: 0.95rem;
    }
}

/* --- Main Content --- */
main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 40px auto 50px;
    padding: 0 15px;
}

h1 {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
    color: var(--cor-azul-escuro);
    margin-bottom: 30px;
    margin-top: 10px;
    display: block;
    text-align: center;
}

/* --- List Area --- */
.list-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.list-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-soft);
    transition: 0.2s;
    border: 1px solid #E2E8F0;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--cor-azul);
}

.list-img {
    width: 60px !important;
    height: 80px !important;
    min-width: 60px !important;
    min-height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px;
    background: #f0f2f5;
    flex-shrink: 0;
    border: 1px solid #ddd;
    display: block;
}

.list-info {
    flex-grow: 1;
}

.list-info h3 {
    margin: 0 0 5px;
    color: var(--cor-azul-escuro);
    font-size: 1.25rem;
    font-weight: 700;
}

.list-info p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.list-action {
    display: flex;
    align-items: center;
}

/* --- Registration Form Specific (pagina-de-servicos.php) --- */
.form-card {
    background: #FFFFFF;
    backdrop-filter: none;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-width: 650px;
    margin: 20px auto;
    border: 1px solid #E2E8F0;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cor-azul-escuro);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--cor-azul);
    width: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cor-azul);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.selection-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 12px;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.2s;
}

.radio-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--cor-azul);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-image {
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #f1f5f9;
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border-radius: 8px;
    border: none;
    background: var(--cor-azul);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.25);
    filter: none;
}

.btn-small {
    padding: 10px 20px;
    background: var(--cor-azul);
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-small:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.25);
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    color: #667eea;
    transition: 0.2s;
    margin-top: 30px;
    text-decoration: none;
    width: 100%;
}

.back-link:hover {
    color: #764ba2;
}

/* --- Profile Details (view.php) --- */
.view-section {
    padding: 20px;
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-info h2 {
    margin: 0;
    color: var(--text-color);
}

.profile-info p {
    margin: 5px 0 0;
    color: #636e72;
    font-weight: 500;
}

.details-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: left;
}

.details-box h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-desc {
    padding: 10px;
    font-size: 0.9rem;
    color: #636e72;
    background: #fff;
    border-top: 1px solid #eee;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    transition: 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

/* --- Footer --- */
footer {
    margin-top: auto;
}

/* --- Responsive --- */
/* --- Responsive --- */
@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
        text-align: center;
    }

    .list-action {
        width: 100%;
        justify-content: center;
    }

    .btn-small {
        width: 100%;
        text-align: center;
        display: block;
    }

    .banner,
    .banner-container {
        display: none;
        /* Hide large banners */
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-card img {
        height: 120px;
    }

    .form-card {
        padding: 20px;
    }
}