/* 
   Service Elétrica - Style Guide & Design Tokens
   Theme: Electric Blue, Crimson Red, and Deep Navy (Official Brand Colors)
*/

:root {
    --bg-dark: #060b16;
    /* Deep navy blue */
    --bg-darker: #03060c;
    --blue-glow: rgba(0, 191, 255, 0.25);
    --red-glow: rgba(211, 47, 47, 0.25);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    /* Slate 300 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Brand Colors */
    --color-primary: #1b75ff;
    /* Electric Blue */
    --color-secondary: #d32f2f;
    /* Crimson Red */
    --color-logo-blue: #13386f;
    /* Logo Navy Blue */
    --color-yellow: #facc15;
    /* Electric Yellow */
    --color-whatsapp: #25d366;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadows & Borders */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(27, 117, 255, 0.4);
    --neon-shadow: 0 0 15px rgba(27, 117, 255, 0.4);
    --neon-shadow-hover: 0 0 25px rgba(27, 117, 255, 0.6), 0 0 8px rgba(211, 47, 47, 0.4);
    --whatsapp-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

/* Ambient Background Glows */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    opacity: 0.5;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 117, 255, 0.15) 0%, transparent 70%);
    top: 30%;
    left: 45%;
}

/* Container & Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.header {
    padding-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Logo Capsule Wrapper */
.logo {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.6rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35), 0 0 15px rgba(27, 117, 255, 0.2);
}

.logo-svg {
    height: 52px;
    width: 50%;
    max-width: 50%;
    display: block;
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    flex-grow: 1;
    padding: 2rem 0;
}

/* Left Section: Info */
.info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
}

/* Badge Alert */
.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    color: var(--color-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(27, 117, 255, 0.8);
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* Typography */
.title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #ffffff 40%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 580px;
}

/* Actions Container */
.actions-container {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    max-width: 580px;
    margin-top: 0.5rem;
    width: 100%;
}

/* Form Styling */
.notify-form {
    width: 100%;
}

.input-group {
    display: flex;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.4rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 0 2px rgba(27, 117, 255, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s;
}

.input-group:focus-within .input-icon {
    color: var(--color-primary);
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0c4cb0 100%);
    color: var(--text-primary);
    box-shadow: var(--neon-shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-shadow-hover);
}

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

/* Loading State for Submit Button */
.btn-loading {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-loading {
    display: inline-block;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex: 1;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp);
    color: #000000;
    box-shadow: var(--whatsapp-shadow);
    transform: translateY(-2px);
}

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

/* Instagram Button */
.btn-instagram {
    background: rgba(225, 48, 108, 0.1);
    border: 1px solid rgba(225, 48, 108, 0.3);
    color: #e1306c;
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex: 1;
    white-space: nowrap;
}

.btn-instagram:hover {
    background: #e1306c;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
    transform: translateY(-2px);
}

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

.contact-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.contact-divider:not(:empty)::before {
    margin-right: .75em;
}

.contact-divider:not(:empty)::after {
    margin-left: .75em;
}

/* Right Section: Visual */
.visual-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-img {
    width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
}

.illustration-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(27, 117, 255, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(45px);
    animation: float-glow 6s ease-in-out infinite;
}

/* Social & Footer */
.footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(27, 117, 255, 0.25);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.freepik-credit {
    font-size: 0.75rem;
}

.freepik-credit a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.3s;
}

.freepik-credit a:hover {
    color: var(--color-primary);
}

/* Toast Notification (Success Modal) */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(6, 11, 22, 0.95);
    border: 1px solid rgba(27, 117, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(27, 117, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    width: 100%;
    max-width: 420px;
    z-index: 9999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.toast-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 0.1rem;
    animation: scale-up 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.toast-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    position: absolute;
    right: -0.25rem;
    top: -0.25rem;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(0.8deg);
    }
}

@keyframes float-glow {

    0%,
    100% {
        transform: scale(1) translateY(0px);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05) translateY(-12px);
        opacity: 1;
    }
}

@keyframes scale-up {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Entrance Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1.2s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 2rem;
    }

    .header {
        justify-content: center;
        padding-bottom: 1.5rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .info-section {
        align-items: center;
    }

    .badge {
        align-self: center;
    }

    .description {
        margin: 0 auto;
    }

    .actions-container {
        margin: 0.5rem auto 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .visual-section {
        order: -1;
    }

    .illustration-wrapper {
        max-width: 400px;
    }

    .title {
        font-size: 3.25rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    .logo {
        padding: 0.5rem 1.25rem;
        border-radius: 16px;
    }

    .logo-svg {
        height: 40px;
    }

    .title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .description {
        font-size: 0.95rem;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.75rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .input-group input {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1rem 1rem 1rem 3rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .input-group:focus-within {
        box-shadow: none;
    }

    .input-group input:focus {
        border-color: var(--glass-border-focus);
    }

    .input-group .btn {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
    }

    .input-icon {
        left: 1.25rem;
        top: 28px;
        transform: translateY(-50%);
    }

    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
    }

    .actions-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
}