/* ========== Inscrição - Estilos Específicos ========== */

/* Banner Novos Aventureiros */
.new-adventurers-banner {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    border: 3px solid #FFD700;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.6s ease;
}

.new-adventurers-banner::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.2;
    animation: rotate 4s linear infinite;
}

.banner-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.banner-content h2 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-highlight {
    background: rgba(255, 255, 255, 0.95);
    color: #2e7d32;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-highlight strong {
    color: #1b5e20;
    font-size: 1.25rem;
}

.banner-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.info-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: white;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Logo Header */
.logo-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-header .logo {
    margin: 0;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, var(--white), var(--light-bg));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border-left: 6px solid var(--secondary-color);
    border-top: 3px solid var(--primary-color);
}

.info-card h2 {
    color: var(--danger-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content p {
    color: var(--dark-color);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.payment-info {
    background: linear-gradient(135deg, var(--primary-color), #0052b8);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 61, 165, 0.3);
}

.payment-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.pix-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pix-info code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-copy {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-copy:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Registration Form Container */
.registration-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--secondary-color);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--light-bg);
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* Form Fields */
#registrationForm .form-group {
    margin-bottom: 2rem;
}

#registrationForm label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.required {
    color: var(--danger-color);
    font-weight: bold;
}

#registrationForm input[type="text"],
#registrationForm input[type="tel"],
#registrationForm input[type="date"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-bg);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

#registrationForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 61, 165, 0.1);
    background: linear-gradient(135deg, var(--white), #f0f8ff);
}

#registrationForm input.valid {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--white), #f0fff4);
}

#registrationForm input.invalid {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, var(--white), #fff5f5);
}

/* Field Feedback */
.field-feedback {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.5rem;
}

.field-feedback.success {
    color: var(--success-color);
}

.field-feedback.error {
    color: var(--danger-color);
}

.field-feedback.checking {
    color: var(--info-color);
}

.field-help {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-help small {
    color: var(--gray);
    font-style: italic;
    display: block;
}

.field-help small:first-child {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

.field-help small:nth-child(2) {
    color: var(--danger-color);
    font-weight: 600;
    font-style: normal;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, var(--info-color), var(--light-bg));
    border-color: #0052b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.15);
}

.file-upload-icon {
    font-size: 2rem;
}

.file-upload-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* File Preview */
.file-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    border-radius: 15px;
    border-left: 5px solid var(--success-color);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-bg);
}

.preview-header strong {
    color: var(--primary-color);
}

.btn-remove-file {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-remove-file:hover {
    background: #c41230;
    transform: scale(1.05);
}

.preview-content {
    text-align: center;
}

.preview-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-content .file-info {
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Success Modal */
.modal-success {
    text-align: center;
    max-width: 550px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), #2ea043);
    color: var(--white);
    font-size: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(34, 139, 34, 0.3);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-success h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.protocol-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-bg), var(--info-color));
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
}

.protocol-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.protocol-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    background: var(--white);
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 61, 165, 0.1);
}

.success-message {
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Overlay */
.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-content p {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .new-adventurers-banner {
        padding: 1.5rem;
    }

    .banner-content h2 {
        font-size: 1.3rem;
    }

    .banner-highlight {
        font-size: 1rem;
        padding: 1rem;
    }

    .banner-highlight strong {
        font-size: 1.1rem;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        font-size: 2.5rem;
    }

    .logo-img {
        height: 45px;
    }

    .info-card {
        padding: 1.5rem;
    }

    .registration-form-container {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .pix-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .pix-info code {
        font-size: 0.95rem;
        word-break: break-all;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .protocol-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .new-adventurers-banner {
        padding: 1.25rem;
    }

    .banner-icon {
        font-size: 2.5rem;
    }

    .banner-content h2 {
        font-size: 1.15rem;
    }

    .banner-highlight {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .banner-info {
        padding: 1rem;
    }

    .info-box strong {
        font-size: 1rem;
    }

    .info-box p {
        font-size: 0.9rem;
    }

    .logo-header {
        flex-direction: column;
        text-align: center;
    }

    .info-card h2 {
        font-size: 1.2rem;
    }

    .payment-info h3 {
        font-size: 1.1rem;
    }

    .file-upload-label {
        padding: 1rem;
    }

    .file-upload-icon {
        font-size: 1.5rem;
    }

    .file-upload-text {
        font-size: 0.95rem;
    }
}

/* Animações adicionais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.registration-form-container {
    animation: fadeInUp 0.6s ease;
}

.registration-form-container {
    animation-delay: 0.2s;
}

/* Print Styles */
@media print {
    .header,
    .btn,
    .file-upload-wrapper {
        display: none;
    }

    .info-card,
    .registration-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
