@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --brand-blue: #0f172a;
    --brand-yellow: #fbbf24;
    --brand-yellow-hover: #f59e0b;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-light: #e2e8f0;
    --error: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-blue);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.background-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 8s alternate infinite ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
    animation-delay: -4s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.layout-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .layout-wrapper {
        flex-direction: row;
    }
}

/* Left Pane */
.info-pane {
    flex: 1.2;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .info-pane {
        padding: 4rem 10%;
    }
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.brand-text .utility-name {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.brand-text .event-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--brand-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.event-description {
    margin-bottom: 3rem;
}

.event-description h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.event-description p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.05rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .event-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.detail-card i {
    color: var(--brand-yellow);
}

.detail-card h4 {
    font-family: 'Outfit', sans-serif;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-card p {
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.directions-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #fff;
    color: var(--brand-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 10;
}

.directions-btn:hover {
    background: var(--brand-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Right Pane */
.form-pane {
    flex: 1;
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

@media (min-width: 1024px) {
    .form-pane {
        border-top-left-radius: 40px;
        border-bottom-left-radius: 40px;
        border-top-right-radius: 0;
    }
}

.form-container {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.form-header-block {
    background: linear-gradient(135deg, var(--brand-blue), #1e293b);
    padding: 3rem 2rem 0 2rem;
    position: relative;
    color: white;
    text-align: center;
}

.form-header-block h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.form-header-block p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.wave-shape {
    display: block;
    width: calc(100% + 4rem);
    height: 40px;
    margin-left: -2rem;
    margin-bottom: -1px; /* Prevents tiny gap */
    transform: translateY(1px);
}

.form-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
    letter-spacing: 0.2px;
}

.help-text {
    font-size: 0.7rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 0.5rem;
    font-style: italic;
}

.input-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.phone-wrapper {
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 2.75rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 5;
}

.phone-input {
    padding-left: 4.75rem !important;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--brand-blue);
}

.btn {
    width: 100%;
    padding: 1.125rem;
    border-radius: 12px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(to right, var(--brand-blue), #1e293b);
    color: #fff;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2), 0 4px 6px -2px rgba(15, 23, 42, 0.1);
    background: linear-gradient(to right, #1e293b, var(--brand-blue));
}

.btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary.loading span {
    opacity: 0;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--brand-blue);
    border: 2px solid #e2e8f0;
}

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

.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.privacy-note i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #10b981;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

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

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Success State */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: zoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 40px;
    height: 40px;
    color: #059669;
}

.success-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 0.75rem;
}

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

.success-actions {
    width: 100%;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
    position: absolute;
}

/* Form Overlay Modal */
.form-overlay-modal {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 0 0 24px 24px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-overlay-content {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    border: 1px solid #f1f5f9;
    max-width: 380px;
    width: 100%;
}

.error-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.form-overlay-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.form-overlay-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.privacy-link {
    color: var(--brand-blue);
    text-decoration: underline;
    font-weight: 600;
}

.privacy-link:hover {
    color: var(--brand-yellow-hover);
}

.copyright-footer {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Privacy Modal */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.privacy-modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dark);
}

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

.privacy-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.privacy-modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--brand-blue);
}

.privacy-modal-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.w-full {
    width: 100%;
}
