 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

:root {
    --primary-color: hsl(0, 0%, 95%);
    --secondary-color: hsl(0, 0%, 0%);
    --bg-header: linear-gradient(to bottom left, hsl(277, 46%, 50%), hsl(277, 46%, 5%));
    --btn-sub: linear-gradient(to bottom left, hsl(277, 46%, 50%), hsl(277, 46%, 5%));
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: hsl(275, 33%, 7%);
        --secondary-color: hsl(0, 0%, 95%);
        --bg-header: linear-gradient(to bottom left, hsl(277, 46%, 50%), hsl(277, 46%, 5%));
        --btn-sub: linear-gradient(to bottom left, hsl(277, 46%, 50%), hsl(277, 46%, 5%));
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-color);
}

.header {
    display: flex;
    background: var(--bg-header);
    width: 100%;
}

header img {
    width: 90px;
    height: 90px;
}

header a {
    color: hsl(0, 0%, 95%);;
    text-decoration: none;
}

.titleHeader {
    font-size: 30px;
    font-weight: bold;
    align-content: center;
}

/* Estilos do Contador */
.countdown-section {
    text-align: center;
    padding: 30px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.countdown-title h2 {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 100%;
    padding: 20px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: 48px;
    font-weight: bold;
    /* line-height: 1; */
    display: block;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.9;
    letter-spacing: 1px;
}

main {
    padding: 50px 24.69rem;
}

.copy h1 {
    color: var(--secondary-color);
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.copy p {
    color: var(--secondary-color);
    font-size: 20px;
    text-align: center;
    margin: 20px 0;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    padding: 40px;
}

h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

#status-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

#status-message.hidden {
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--btn-sub);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

footer {
    background-image: var(--bg-header);
    color: hsl(0, 0%, 95%);
    margin-top: 150px;
    width: 100%;
    height: 150px;
}

.message img {
    position: fixed;
    bottom: 0;
    margin-bottom: 40px;
    margin-left: 90rem;
    width: 50px;
    height: 50px;
    transition: 0.4s;
}

.message img:hover {
    transform: translateY(-5px);
    filter: brightness(130%) contrast(100%) saturate(100%);
}

.message p {
    position: fixed;
    bottom: 0;
    margin-bottom: 100px;
    margin-left: 89.5rem;
}

footer p {
    margin-left: 34rem;
    margin-top: 100px;
    font-weight: bold;
    font-size: 20px;
}

/* ========================================
   ADICIONE ESTES ESTILOS NO FINAL DO SEU ARQUIVO inscricao.css
   ======================================== */

/* Estilos de mensagens de status - ATUALIZADO */
#status-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

#status-message.hidden {
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: slideDown 0.3s ease-out;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos de campos com erro - NOVO */
.field-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-text {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão desabilitado - NOVO */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .row {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 25px;
    }

    main {
        padding: 20px 20px;
    }

    .countdown-title {
        font-size: 18px;
    }

    .countdown-timer {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 11px;
    }

    footer {
        margin-top: 80px;
    }

    footer p {
        margin-left: 25px;
        margin-top: 100px;
        font-size: 12px;
        white-space: nowrap;
    }

    .message img {
        margin-bottom: 100px;
        margin-left: 19.75rem;
        width: 40px;
        height: 40px;
    }
}