:root {
    --griffus-pink: #e91e63;
    --griffus-pink-dark: #c2185b;
    --griffus-text-dark: #212121;
    --griffus-text-gray: #757575;
    --griffus-bg-light: #fafafa;
    --griffus-border-subtle: #f8bbd0;
    --input-border: #e0e0e0;
    --focus-shadow: rgba(233, 30, 99, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Verdana, sans-serif;
}

body {
    background-color: var(--griffus-bg-light);
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    color: var(--griffus-text-dark);
}

.main-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.header-strip {
    background-color: var(--griffus-pink);
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 4px solid var(--griffus-pink-dark);
}

.logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-strip h2 {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.content-body {
    padding: 30px;
}

.intro-text {
    font-size: 0.95rem;
    color: var(--griffus-text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.intro-text i {
    color: var(--griffus-pink);
    margin-right: 6px;
}

fieldset {
    border: 1px solid var(--griffus-border-subtle);
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    min-width: 0; /* Correção para não vazar a tela em dispositivos móveis */
}

legend {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--griffus-pink);
    padding: 0 15px;
    background-color: #fff;
    border-radius: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width { grid-column: span 2; }

@media (max-width: 768px) {
    fieldset {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    .full-width { grid-column: span 1; }
    .content-body { padding: 20px; }
}

label {
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--griffus-text-gray);
    font-weight: 500;
}

.obrigatorio { color: #e53935; }

input, select {
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--griffus-text-dark);
    outline: none;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
    width: 100%;
}

input:focus, select:focus {
    border-color: var(--griffus-pink);
    box-shadow: 0 0 0 4px var(--focus-shadow);
    background-color: #fff;
}

input::placeholder { color: #bdbdbd; }

.badge-limit {
    font-size: 0.75rem;
    background-color: #eee;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
}

/* File Upload */
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 12px;
    background-color: #fafafa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    color: var(--griffus-text-gray);
}

.file-upload-label:hover {
    background-color: #f0f0f0;
    border-color: var(--griffus-pink);
}

.file-upload-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23757575"><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.file-name-display {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--griffus-text-gray);
    word-break: break-all;
}

.file-status {
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
    font-weight: 500;
}

/* Missing doc highlight */
.missing-doc {
    border-color: #e53935 !important;
    background-color: #ffebee !important;
    animation: shakeMissing 0.5s ease;
}

@keyframes shakeMissing {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    40%      { transform: translateX(4px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

/* Button */
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

button[type="submit"] {
    padding: 14px 35px;
    background: linear-gradient(90deg, var(--griffus-pink), #ff4fa3);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    font-family: inherit;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

button[type="submit"] i {
    margin-right: 6px;
}

/* =====================================================
   MODAL LGPD (same as contratos)
   ===================================================== */
.modal-lgpd-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; } to { opacity: 1; }
}

.modal-lgpd-box {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 540px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUpModal 0.25s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-lgpd-header {
    background: linear-gradient(135deg, var(--griffus-pink), var(--griffus-pink-dark));
    padding: 22px 28px;
    display: flex; align-items: center; gap: 14px;
}

.modal-lgpd-icon { font-size: 1.8rem; color: rgba(255,255,255,.9); flex-shrink: 0; }

.modal-lgpd-header h3 {
    color: #fff; font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin: 0;
}

.modal-lgpd-body {
    padding: 24px 28px 8px;
    display: flex; flex-direction: column; gap: 14px;
}

.modal-lgpd-body p { font-size: 0.92rem; color: var(--griffus-text-dark); line-height: 1.65; margin: 0; }
.modal-lgpd-body a { color: var(--griffus-pink); text-decoration: none; font-weight: 500; }
.modal-lgpd-body a:hover { text-decoration: underline; }

.modal-lgpd-check-row {
    padding: 18px 28px 14px; border-top: 1px solid #f5f5f5; margin-top: 10px;
}

.modal-lgpd-check-label {
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer; font-size: 0.92rem; color: var(--griffus-text-dark);
    font-weight: 500; line-height: 1.5; user-select: none; margin-bottom: 0;
}

.modal-lgpd-check-label input[type="checkbox"] {
    width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
    accent-color: var(--griffus-pink); cursor: pointer;
    padding: 0; border: none; box-shadow: none;
}

.modal-lgpd-footer {
    display: flex; justify-content: flex-end; gap: 12px; padding: 16px 28px 24px;
}

.btn-lgpd-cancelar {
    padding: 11px 22px; background: #fff; color: var(--griffus-text-gray);
    border: 1px solid #e0e0e0; border-radius: 30px; font-size: 0.9rem;
    font-weight: 600; cursor: pointer; box-shadow: none;
    display: flex; align-items: center; gap: 7px; transition: all 0.2s; font-family: inherit;
}

.btn-lgpd-cancelar:hover {
    background: #f5f5f5; border-color: #bdbdbd; color: var(--griffus-text-dark);
    transform: none; box-shadow: none;
}

.btn-lgpd-confirmar {
    padding: 11px 26px; background: var(--griffus-pink); color: #fff;
    border: none; border-radius: 30px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; box-shadow: 0 4px 14px rgba(233,30,99,.35);
    display: flex; align-items: center; gap: 8px; transition: all 0.25s; font-family: inherit;
}

.btn-lgpd-confirmar:hover:not(:disabled) {
    background: var(--griffus-pink-dark); transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(233,30,99,.4);
}

.btn-lgpd-confirmar:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 480px) {
    .modal-lgpd-header   { padding: 18px 20px; }
    .modal-lgpd-body     { padding: 18px 20px 6px; }
    .modal-lgpd-check-row{ padding: 14px 20px 10px; }
    .modal-lgpd-footer   { flex-direction: column-reverse; padding: 14px 20px 20px; }
    .btn-lgpd-cancelar,
    .btn-lgpd-confirmar  { width: 100%; justify-content: center; }
}
