﻿
:root {
    /* Paleta de Cores Oficial */
    --laranja-principal: #FF7A00;
    --laranja-claro: #FFA95D;
    --verde-secundario: #30C16A;
    --fundo-azul-claro: #E6F3FF;
    --texto: #222222;
    --cinza-claro: #E0E0E0;
    --branco: #FFFFFF;
    /* Cores suaves para headers */
    --header-suave: #444444;
    /* Sombras */
    --sombra-leve: 0 2px 8px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 4px 12px rgba(0, 0, 0, 0.12);
    --sombra-forte: 0 8px 24px rgba(0, 0, 0, 0.16);
    /* Transições */
    --transicao: all 0.3s ease;
    --secondary-color: #30C16A;
    --danger-color: #FF4757;
}


.main-content {
    flex: 1;
    padding: 7rem 0 0 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--texto);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

    .toast.active {
        display: flex;
    }

    .toast.success {
        border-left: 4px solid var(--secondary-color);
    }

    .toast.error {
        border-left: 4px solid var(--danger-color);
    }

@media (max-width: 768px) {
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* ========================================
   CHECKOUT GRID - LAYOUT 2 CARDS
   ======================================== */

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background-color: var(--branco);
    border-radius: 16px;
    box-shadow: var(--sombra-media);
    overflow: hidden;
    transition: var(--transicao);
}

    .card:hover {
        box-shadow: var(--sombra-forte);
    }

/* Card Principal - Maior destaque */
.card-main {
    transform: scale(1);
}

    .card-main:hover {
        transform: translateY(-2px);
    }

/* Card Resumo - Mais discreto */
.card-summary {
    position: sticky;
    top: 100px;
}

/* Headers mais suaves */
.card-header {
    background-color: #f8f9fa;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid var(--cinza-claro);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--header-suave);
}

.card-body {
    padding: 2rem;
}

/* ========================================
   LAYOUT DE 2 COLUNAS (Dados Pessoais | Cartão)
   ======================================== */

.two-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column {
    display: flex;
    flex-direction: column;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--header-suave);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cinza-claro);
}

/* ========================================
   FORMULÁRIOS
   ======================================== */

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


span.form-hint {
    color: #ff4444;
    font-size: 13px;
    padding-left: 10px;
    display: block;
    padding-top: 0.3rem;
    white-space: break-spaces;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--cinza-claro);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--texto);
    background-color: var(--branco);
    transition: var(--transicao);
    font-family: inherit;
}

    .form-input:focus {
        outline: none;
        border-color: var(--laranja-principal);
        box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
    }

    .form-input::placeholder {
        color: #999;
    }

    .form-input:read-only {
        background-color: #f8f9fa;
        cursor: not-allowed;
        color: #666;
    }

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    font-style: italic;
}

.form-divider {
    height: 1px;
    background-color: var(--cinza-claro);
    margin: 2rem 0;
}

/* ========================================
   CAMPOS DE ENDEREÇO
   ======================================== */

.endereco-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--cinza-claro);
}

/* ========================================
   FORM ROWS
   ======================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========================================
   INPUT COM ÍCONE
   ======================================== */

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-header {
    display: none;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon-field {
    padding-left: 3rem;
}

/* ========================================
   BADGE DE SEGURANÇA
   ======================================== */

.security-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--fundo-azul-claro);
    padding: 1rem;
    border-radius: 10px;
}

.security-icon {
    font-size: 2rem;
}

.security-text strong {
    display: block;
    color: var(--texto);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.security-text p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* ========================================
   RESUMO - PET INFO
   ======================================== */

.pet-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pet-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--laranja-principal), #ff9933);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pet-details {
    flex: 1;
}

.pet-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--texto);
    margin: 0;
}

.pet-breed {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   RESUMO - ITENS
   ======================================== */

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.summary-label {
    color: #666;
    font-size: 0.95rem;
}

.summary-value {
    color: var(--texto);
    font-weight: 600;
    font-size: 1rem;
}

.summary-price {
    color: var(--laranja-principal);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ========================================
   AVISO DE RECORRÊNCIA
   ======================================== */

.recurring-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background-color: #fff8f0;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--laranja-principal);
    margin-bottom: 1rem;
}

.recurring-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recurring-text {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

    .recurring-text strong {
        color: var(--texto);
    }

/* ========================================
   BOTÕES
   ======================================== */

.btn-primary {
    background-color: var(--laranja-principal);
    color: var(--branco);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transicao);
    box-shadow: var(--sombra-media);
    width: 100%;
}

.btn-large {
    padding: 1.3rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #e66d00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

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

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.terms-text {
    margin: 1rem 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    display: block;
    text-align: left;
}

.link {
    color: var(--laranja-principal);
    text-decoration: none;
    font-weight: 600;
}

    .link:hover {
        text-decoration: underline;
    }

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

    .modal.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--branco);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--sombra-forte);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--texto);
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

    .modal-text strong {
        color: var(--laranja-principal);
    }

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--branco);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.footer-text {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 1200px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .card-summary {
        position: static;
    }

    .two-columns-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .two-columns-grid {
        gap: 1.5rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 1.1rem 1.5rem;
    }
}
