/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #030213;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hidden {
    display: none !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-image-container {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

@media (min-width: 768px) {
    .hero-image-container {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .hero-image-container {
        height: 500px;
    }
}

/* Main Content */
.main-content {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 32px 0;
}

@media (min-width: 768px) {
    .main-content {
        margin-top: -128px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        margin-top: -160px;
    }
}

/* Card Styles */
.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 672px;
    margin: 0 auto;
}

.card-header {
    text-align: center;
    padding: 24px 24px 0;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 30px;
    }
}

.card-description {
    color: #717182;
    font-size: 16px;
    margin-bottom: 0;
}

.card-content {
    padding: 24px;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

label {
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background-color: #f3f3f5;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #030213;
    box-shadow: 0 0 0 2px rgba(3, 2, 19, 0.1);
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #030213;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-line {
    margin-bottom: 4px;
}

.checkbox-line:last-child {
    margin-bottom: 0;
}

.link-button {
    background: none;
    border: none;
    color: #030213;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.link-button:hover {
    text-decoration: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #030213;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: rgba(3, 2, 19, 0.9);
}

.submit-btn:disabled {
    background-color: #cbced4;
    cursor: not-allowed;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 24px 0;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.success-state h3 {
    font-size: 24px;
    font-weight: 600;
}

.success-state p {
    color: #717182;
}

.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.success-message p {
    color: #166534;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030213;
}

.feature-card h4 {
    font-weight: 600;
    font-size: 16px;
}

.feature-card p {
    font-size: 14px;
    color: #717182;
}

/* Information Section */
.info-section {
    margin: 48px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #717182;
}

.step-number {
    background-color: #030213;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    flex-shrink: 0;
}

.prize-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #717182;
}

/* Terms Summary Section */
.terms-summary-section {
    margin: 48px 0;
}

.terms-summary-card {
    background: #ececf0;
    border-radius: 8px;
    padding: 24px;
    max-width: 1024px;
    margin: 0 auto;
}

.terms-summary-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.terms-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-summary p {
    font-size: 14px;
    color: #717182;
}

/* Footer */
.footer {
    background-color: #030213;
    color: white;
    padding: 48px 0;
    margin-top: 64px;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer h3 {
    font-size: 24px;
    font-weight: 600;
}

.footer p {
    font-size: 16px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-links a {
    color: white;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.8;
}

.social-icon {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    margin-top: 8px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 672px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 14px;
    color: #717182;
    margin-bottom: 16px;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #717182;
}

.close-btn:hover {
    background-color: #f3f3f5;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-content section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-content h4 {
    font-weight: 600;
    font-size: 14px;
}

.terms-content p {
    font-size: 14px;
    color: #717182;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 8px 16px;
    background-color: #f3f3f5;
    color: #030213;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e9ebef;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.toast.success {
    background-color: #10b981;
    color: white;
}

.toast.error {
    background-color: #ef4444;
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .registration-section {
        margin: 0 -16px;
    }
    
    .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
