
/* --- ESTILOS DO FORMULÁRIO --- */
.certtus-rh-container {
    background-color: transparent;
    padding: 30px 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.certtus-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.full-width {
    grid-column: span 2;
}

.certtus-rh-container .form-control {
    width: 100%;
    padding: 16px 15px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #e0e4e8;
    background: #ffffff;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.certtus-rh-container .form-control:focus {
    border-color: #4a81ff;
    box-shadow: 0 0 0 3px rgba(74, 129, 255, 0.1);
}

.certtus-rh-container .form-control::placeholder {
    color: #8c98a4;
}

.certtus-rh-container textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- UPLOAD DE ARQUIVO (ANEXAR) --- */
.file-upload-wrapper {
    margin-bottom: 30px;
    text-align: left;
}

.btn-anexar {
    background-color: #4a81ff;
    color: white;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.btn-anexar:hover {
    background-color: #366ce6;
}

.file-hint {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}

.file-name-display {
    font-size: 14px;
    color: #2ecc71;
    margin-top: 8px;
    font-weight: 600;
    display: none;
}

/* --- BOTÃO ENVIAR --- */
.certtus-rh-container .btn-submit {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 16px 20px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    transition: 0.2s ease;
    position: relative;
}

.certtus-rh-container .btn-submit:hover {
    background: #0f172a !important;
    transform: translateY(-2px);
}

.certtus-rh-container .btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed !important;
    color: transparent !important;
    transform: none;
}

.certtus-rh-container .btn-submit.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- FEEDBACK DE SUCESSO --- */
.certtus-success-feedback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    text-align: center;
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Círculo do check */
.certtus-check-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #e8eeff ;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* SVG do check com animação de traço */
.certtus-check-circle svg {
    width: 46px;
    height: 46px;
}

.certtus-check-circle svg .check-path {
    stroke: #4a81ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.5s ease 0.55s forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.certtus-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.certtus-success-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
}

.certtus-success-text strong {
    color: #4a81ff;
}

/* Responsividade Mobile */
@media (max-width: 600px) {
    .certtus-form-grid { grid-template-columns: 1fr; gap: 15px; }
    .full-width { grid-column: span 1; }
    .btn-anexar, .certtus-rh-container .btn-submit { max-width: 100%; }
}
