:root {
    --bg-color: #050505;
    --panel-bg: rgba(20, 5, 5, 0.6);
    --panel-border: rgba(255, 50, 50, 0.15);
    --primary-color: #e63946;
    --primary-hover: #d62828;
    --text-primary: #ffffff;
    --text-secondary: #a09eb0;
    --error-color: #ff4d4d;
    --success-color: #00b4d8;
    --input-bg: rgba(0, 0, 0, 0.5);
    --input-border: rgba(230, 57, 70, 0.3);
    --font-family: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 0;
}

/* Animated Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(230,57,70,0.3) 0%, rgba(5,5,5,0) 70%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(200,0,0,0.2) 0%, rgba(5,5,5,0) 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 60%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255,50,50,0.15) 0%, rgba(5,5,5,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 750px;
    padding: 2rem;
    z-index: 1;
}

/* Admin Link Button */
.admin-link-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-speed);
    z-index: 100;
}

.admin-link-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    color: white;
    border-color: var(--primary-color);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.header-logo img {
    width: 140px;
    height: 140px; /* fixed height to ensure it's a perfect square for border-radius */
    object-fit: cover;
    border-radius: 50%; /* This cuts the white corners into a perfect circle */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-speed);
}

.header-logo img:hover {
    transform: scale(1.05);
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #d1d1d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form Styles */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity var(--transition-speed);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half-width {
    flex: 1;
}

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

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    transition: all var(--transition-speed);
}

.input-container:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.input-container input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
}

.input-container label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
}

/* Floating Label Logic */
.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: var(--bg-color); /* To hide the border behind the label */
    padding: 0 0.5rem;
    color: var(--primary-hover);
    border-radius: 4px;
}

.input-container input:not(:placeholder-shown):not(:focus) ~ label {
    color: var(--text-secondary);
}

/* Focus Effects */
.focus-border {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-hover);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.input-container input:focus ~ .focus-border {
    width: 100%;
}

.input-container input:focus ~ .input-icon {
    color: var(--primary-hover);
}

/* Validation States */
.form-group.error .input-container {
    border-color: var(--error-color);
}

.form-group.error .input-icon {
    color: var(--error-color);
}

.error-message {
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-speed);
    position: absolute;
    bottom: -1.2rem;
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.form-actions {
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #8a0000);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

.submit-btn:hover::after {
    left: 100%;
}

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

.btn-icon {
    transition: transform var(--transition-speed);
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease forwards;
}

.success-state.hidden {
    display: none;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.success-icon {
    font-size: 48px;
    color: var(--success-color);
}

.success-state h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.success-state p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.outline-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

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

/* Toggle Switch */
.toggle-group {
    margin: 0.5rem 0;
}
.toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    user-select: none;
}
.toggle-container input {
    display: none;
}
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: var(--transition-speed);
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-speed);
}
.toggle-container input:checked + .toggle-switch {
    background: var(--primary-color);
}
.toggle-container input:checked + .toggle-switch::after {
    transform: translateX(24px);
}
.toggle-label {
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* Companions Section */
.companions-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.4s ease;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-hover);
}
.section-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}
.companions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.companion-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeIn 0.3s ease;
}
.companion-item .input-container {
    flex: 1;
}
.remove-btn {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: var(--error-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-speed);
    margin-top: 0;
}
.remove-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    transform: scale(1.05);
}
.text-btn {
    background: transparent;
    border: none;
    color: var(--primary-hover);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    padding: 0.5rem 0;
    transition: var(--transition-speed);
}
.text-btn:hover {
    color: white;
}

/* Payment Section */
.payment-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.4s ease;
}
.payment-info {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.price-badge {
    font-size: 1.2rem;
    color: var(--primary-hover);
}
.price-badge strong {
    font-weight: 700;
    color: white;
}
.payment-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.pix-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    justify-content: space-between;
}
.pix-key {
    font-family: monospace;
    font-size: 1rem;
    color: white;
    letter-spacing: 0.5px;
    word-break: break-all;
}
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-speed);
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* File Upload */
.file-upload-container {
    position: relative;
    width: 100%;
}
.file-upload-container input[type="file"] {
    display: none;
}
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--input-bg);
    border: 1px dashed var(--text-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-speed);
    text-align: center;
}
.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-hover);
    color: white;
}
.form-group.error .file-upload-label {
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-hover);
    padding-right: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: white;
}

.modal-body {
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.5);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Timeline Styles */
.schedule-day h3 {
    font-size: 1.2rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.timeline {
    list-style: none;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.time {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    height: fit-content;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.desc {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.desc strong {
    color: white;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.25rem;
}

.desc .opcional {
    font-size: 0.85rem;
    color: #ffd166;
    margin-top: 0.5rem;
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-panel {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
}

.developer-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    width: 100%;
}

.developer-footer:hover {
    opacity: 0.9;
}

.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
}

.deadline-badge strong {
    color: white;
    font-weight: 700;
}

.deadline-badge span.material-symbols-rounded {
    font-size: 1.1rem;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
