/* ===== Página Agendar Demonstração ===== */

/* Seção 1: Hero com fundo quadriculado + degradê verde (mesmo padrão da home e planos) */
.demo-hero {
    position: relative;
    padding: 2.5rem 2rem 3rem;
    width: 100%;
    overflow: hidden;
    background-color: rgba(232, 245, 233, 0.4);
}

.demo-hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: transparent;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.4;
    pointer-events: none;
}

.demo-hero-bg::before,
.demo-hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.18;
}

.demo-hero-bg::before {
    width: 480px;
    height: 480px;
    background: var(--green);
    bottom: -120px;
    left: -120px;
}

.demo-hero-bg::after {
    width: 420px;
    height: 420px;
    background: var(--green);
    top: -100px;
    right: -100px;
}

.demo-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .demo-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
    }
    .demo-form-wrap {
        order: -1;
    }
}

.demo-hero-content {
}

/* Título no mesmo padrão da Home (hero-title) */
.demo-hero-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .demo-hero-title { font-size: 1.875rem; }
}

@media (min-width: 1280px) {
    .demo-hero-title { font-size: 2rem; }
}

.demo-hero-title strong {
    font-weight: 800;
}

.demo-hero-green {
    color: var(--green);
}

.demo-hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.demo-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: #fff;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.demo-pill svg {
    color: var(--green);
    flex-shrink: 0;
}

/* Card do formulário */
.demo-form-wrap {
    position: relative;
}

.demo-form-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.demo-form-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.demo-form-title-icon {
    display: flex;
    color: var(--green);
}

.demo-form-title-icon svg {
    width: 24px;
    height: 24px;
}

.demo-form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fbfcfc;
    box-sizing: border-box;
}

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

.demo-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 214, 107, 0.15);
}

.demo-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.demo-form-feedback {
    display: none;
    margin: 0 0 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    border-radius: 8px;
}

.demo-form-feedback--success {
    background: rgba(0, 214, 107, 0.12);
    color: #00a858;
}

.demo-form-feedback--error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.demo-form-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    position: relative;
}

.demo-form-btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.demo-form-btn.is-loading .demo-form-btn-text {
    visibility: hidden;
}

.demo-form-btn.is-loading .demo-form-btn-loader {
    display: inline-flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.demo-form-spinner {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: demo-form-spin 0.7s linear infinite;
}

@keyframes demo-form-spin {
    to { transform: rotate(360deg); }
}

.demo-form-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ===== Seção 2: Funcionalidades (grid de cards) ===== */
.demo-func-section {
    background: #fff;
    padding: 3.5rem 2rem 4rem;
}

.demo-func-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.demo-func-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text);
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 900px;
}

.demo-func-title strong {
    font-weight: 700;
}

.demo-func-title-green {
    color: var(--green);
    font-weight: 700;
}

.demo-func-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .demo-func-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .demo-func-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 600px) {
    .demo-func-grid {
        grid-template-columns: 1fr;
    }
    .demo-func-title {
        font-size: 1.35rem;
    }
}

.demo-func-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-func-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.demo-func-card--green { border-color: #c8eed9; }
.demo-func-card--blue { border-color: #bfdbfe; }
.demo-func-card--purple { border-color: #e9d5ff; }
.demo-func-card--yellow { border-color: #fde68a; }
.demo-func-card--red { border-color: #fecaca; }
.demo-func-card--teal { border-color: #99f6e4; }

.demo-func-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.demo-func-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-func-card-icon svg {
    width: 26px;
    height: 26px;
}

.demo-func-icon-green {
    background: rgba(0, 214, 107, 0.15);
    color: #00a858;
}

.demo-func-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.demo-func-icon-purple {
    background: rgba(147, 51, 234, 0.15);
    color: #6d28d9;
}

.demo-func-icon-yellow {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.demo-func-icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.demo-func-icon-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
}

.demo-func-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.demo-func-card-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
