/* public/assets/css/style.css */

:root {
    /* Identidade Andreza Bergamo */
    --primary: #9d1b4b;
    /* Vinho/Magenta Profundo */
    --primary-hover: #7a153a;
    --secondary: #d4af37;
    /* Dourado */
    --accent: #d4af37;

    --bg-color: #fcfcfc;
    --text-color: #333333;
    --card-bg: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: radial-gradient(#f3e5f5 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(157, 27, 75, 0.1);
    /* Sombra sutil vinho */
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary);
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 25px;
}

.subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Inputs */
.input-text,
textarea,
select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #fafafa;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.input-text:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(157, 27, 75, 0.1);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    /* Pill shape conforme referência */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(157, 27, 75, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 27, 75, 0.4);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 15px;
}

.btn-secondary:hover {
    background: rgba(157, 27, 75, 0.05);
}

.btn-pulsing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(157, 27, 75, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(157, 27, 75, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(157, 27, 75, 0);
    }
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 600px;
    background: #eee;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    width: 0%;
    transition: width 0.5s ease;
}

/* Option Cards (Radio Buttons) */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    background-color: #fff5f8;
    /* Levemente rosado */
    border-color: var(--primary);
    transform: translateX(5px);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: #fff0f5;
    box-shadow: 0 0 0 1px var(--primary);
}

.option-card input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary);
    transform: scale(1.2);
    cursor: pointer;
}

.option-card span {
    flex: 1;
    font-size: 1.05rem;
    color: #444;
    font-weight: 400;
    line-height: 1.4;
    /* Melhor leitura para textos longos */
}

/* Typography Highlights */
strong {
    color: var(--primary);
}

/* Specific elements from reference */
.intro-text p strong {
    color: var(--secondary);
    /* Dourado para destaque no texto */
    font-family: var(--font-heading);
    font-size: 1.1em;
}

/* Result Specifics */
/* Result Specifics */
.preview-text {
    font-family: var(--font-heading);
    color: #555;
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 30px 0;
    padding: 0 20px;
    border-left: 3px solid var(--secondary);
    text-align: center;
    font-style: italic;
    background: transparent;
}

.blur-overlay {
    position: relative;
    margin: 30px 0;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
}

.benefit-list {
    list-style: none;
    /* Remove bullets */
    padding: 0;
    text-align: left;
    margin: 20px auto;
    max-width: 400px;
    /* Limit width */
}

.benefit-list li {
    margin-bottom: 15px;
    color: #444;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgency-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #b8860b 100%);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.price-box {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    font-weight: 300;
}

.new-price {
    color: var(--primary);
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

/* Full Text Content */
.full-text-content h3 {
    color: var(--primary);
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--secondary);
}

/* Pix Payment Styles */
.pix-card {
    border-top-color: #00b894;
}

.pix-container {
    margin: 30px 0;
}

.qr-code-wrapper {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-bottom: 25px;
}

.qr-code-img {
    width: 200px;
    height: 200px;
    display: block;
}

.pix-copy-section {
    margin: 20px 0;
}

.pix-code-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pix-code-input {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: monospace;
    background: #f9f9f9;
    text-overflow: ellipsis;
}

.pix-code-wrapper .btn {
    width: auto;
    padding: 12px 20px;
    font-size: 0.9rem;
    margin-top: 0;
}

.pix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 12px;
    border: 1px solid #c6f6d5;
}

.pix-status p {
    margin: 0;
    color: #276749;
    font-weight: 600;
    font-size: 1.1rem;
}

.pix-status.paid {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
}

.pix-status.paid p {
    color: #22543d;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #c6f6d5;
    border-top-color: #38a169;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pix-timer {
    color: #666;
    font-size: 0.95rem;
}

.pix-timer span {
    font-weight: bold;
    color: var(--primary);
}

/* Success Icon Animation */
.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 25px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .qr-code-img {
        width: 180px;
        height: 180px;
    }

    .pix-code-input {
        min-width: 100%;
    }

    .pix-code-wrapper {
        flex-direction: column;
    }

    .pix-code-wrapper .btn {
        width: 100%;
    }
}