/* ========================================
   PÁGINA DE INSCRIÇÃO - ESTILOS
   ======================================== */

/* Container Principal */
.inscription-container {
    min-height: calc(100vh - 100px);
    background: linear-gradient(135deg, #E9E9E9 0%, #F5F5F5 100%);
    padding: 40px 20px;
}

.inscription-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
}

/* Cabeçalho */
.inscription-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #C9A227;
}

.inscription-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #14214D;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.inscription-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #4D577A;
    font-weight: 400;
}

.inscription-subtitle span {
    font-weight: 600;
}

.login-link {
    color: #C9A227;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.login-link:hover {
    background: #C9A227;
    color: #FFFFFF;
}

/* Seções do Formulário */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #FAFAFA;
    border-radius: 12px;
    border-left: 4px solid #C9A227;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #14214D;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #C9A227;
    font-size: 1.3rem;
}

/* Grid de Campos */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Labels */
.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required {
    color: #E74C3C;
    font-size: 1rem;
}

/* Inputs */
.form-input,
.form-textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #2C3E50;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #C9A227;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #E74C3C;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #27AE60;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

.char-counter {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

/* Senha */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #C9A227;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    width: 33%;
    background: #E74C3C;
}

.strength-fill.medium {
    width: 66%;
    background: #F39C12;
}

.strength-fill.strong {
    width: 100%;
    background: #27AE60;
}

.strength-text {
    font-size: 0.85rem;
    color: #999;
    margin-top: 4px;
    display: inline-block;
}

/* Checkboxes Personalizados */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #2C3E50;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #F0F0F0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #C9A227;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #C9A227;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
}

/* Termos */
.terms-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #2C3E50;
    margin-bottom: 20px;
    font-weight: 500;
}

.terms-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.terms-checkbox {
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background: #FFFFFF;
}

.terms-checkbox:hover {
    border-color: #C9A227;
    background: #FFFEF7;
}

.terms-link {
    color: #C9A227;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #B8860B;
}

/* Mensagens de Erro */
.error-message {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #E74C3C;
    margin-top: 6px;
}

.form-group.error .error-message,
.form-section.error .error-message {
    display: block;
}

.form-group.error .form-input {
    border-color: #E74C3C;
}

/* Botão de Envio */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #C9A227 0%, #B8860B 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 162, 39, 0.6);
    background: linear-gradient(135deg, #E9C46A 0%, #C9A227 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit i {
    font-size: 1.2rem;
}

/* Mensagem de Agradecimento */
.thank-you-message {
    text-align: center;
    padding: 80px 40px;
    animation: fadeIn 0.5s ease;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-content i {
    font-size: 5rem;
    color: #27AE60;
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease;
}

.thank-you-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #14214D;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.thank-you-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C9A227;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.thank-you-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #4D577A;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-return {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #14214D;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-return:hover {
    background: #C9A227;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
}

/* Footer */
.inscription-footer {
    background: #14214D;
    color: #E9E9E9;
    text-align: center;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .inscription-wrapper {
        padding: 30px 20px;
    }

    .inscription-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .form-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .btn-submit {
        width: 80%;
        padding: 16px 30px;
        font-size: 1rem;
    }

    .thank-you-content h2 {
        font-size: 1.8rem;
    }

    .thank-you-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .inscription-container {
        padding: 20px 10px;
    }

    .inscription-wrapper {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .inscription-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .form-input,
    .form-textarea {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* ========================================
   SEÇÃO DE CREDENCIAMENTO
   ======================================== */
.credentialing-section {
    margin-top: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #14214D 0%, #1a2a5e 100%);
    border-radius: 12px;
    text-align: center;
}

.credentialing-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #C9A227;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.credentialing-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #E9E9E9;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.credentialing-actions {
    display: flex;
    justify-content: center;
}

.btn-credentialing {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #14214D;
    background: #C9A227;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-credentialing i {
    font-size: 1.2rem;
}

.btn-credentialing:hover {
    background: #B39020;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-credentialing:active {
    transform: translateY(0);
}

/* Responsivo para Credenciamento */
@media (max-width: 768px) {
    .credentialing-section {
        padding: 30px 20px;
    }

    .credentialing-title {
        font-size: 1.4rem;
    }

    .credentialing-subtitle {
        font-size: 0.95rem;
    }

    .btn-credentialing {
        padding: 16px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .credentialing-title {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

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