:root {
    --bg-dark: #050a11;
    --bg-petrol: #0B2447;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-turq: #19A7CE;
    --accent-turq-light: #2bc1e8;
    --accent-gold: #cfaa76;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE5D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 100% 0%, rgba(25, 167, 206, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(11, 36, 71, 0.8) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

.main-container {
    width: 100%;
    max-width: 500px;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header */
.profile-header {
    text-align: center;
    position: relative;
    animation: fadeInDown 0.8s ease;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--accent-turq) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
    filter: blur(20px);
}

.profile-img-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.profile-header p {
    font-size: 16px;
    color: var(--accent-gold);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Actions Section */
.actions-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.action-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.action-card:hover,
.action-card:active {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-card.highlight {
    background: linear-gradient(135deg, rgba(25, 167, 206, 0.15), rgba(11, 36, 71, 0.5));
    border: 1px solid rgba(25, 167, 206, 0.4);
}

.action-card.highlight:hover,
.action-card.highlight:active {
    background: linear-gradient(135deg, rgba(25, 167, 206, 0.25), rgba(11, 36, 71, 0.6));
    border-color: rgba(25, 167, 206, 0.6);
    box-shadow: 0 10px 30px rgba(25, 167, 206, 0.2);
}

.card-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.card-content {
    flex: 1;
    margin: 0 16px;
}

.card-category {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-turq-light);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.action-card.highlight .card-icon {
    background: var(--accent-turq);
    color: white;
}

.action-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Atendimentos Section */
.treatments-section {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-secondary);
    letter-spacing: -0.2px;
}

.treatments-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.treatment-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.treatment-item i {
    color: var(--accent-turq);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Footer */
.site-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.footer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-spec {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-dev {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.footer-dev strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* MODAL DE AGENDAMENTO */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    background: linear-gradient(145deg, #0B2447 0%, #19A7CE 150%);
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 30px 24px;
    color: var(--text-primary);
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-backdrop.hidden .modal-container {
    transform: translateY(30px) scale(0.95);
}

.fechar-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fechar-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
    margin-top: 10px;
}

.foto-medico-modal {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.foto-medico-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background-color: #fff;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.modal-body {
    position: relative;
    min-height: 220px;
}

.etapa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.etapa.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.etapa.exit-left {
    transform: translateX(-20px);
    opacity: 0;
    position: absolute;
}

.etapa h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.opcoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.opcoes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-opcao {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-opcao:hover,
.btn-opcao:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

input[type="text"] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 16px;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    margin-bottom: 8px;
    transition: all 0.2s;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-continuar {
    width: 100%;
    background-color: white;
    color: #0B2447;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-continuar:hover,
.btn-continuar:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.error-msg {
    color: #ffd1d1;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
    font-weight: 500;
}

/* Tela Final Agendamento */
.sucesso-icon {
    font-size: 54px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#etapa-final {
    text-align: center;
}

#etapa-final h3 {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.btn-whatsapp {
    width: 100%;
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover,
.btn-whatsapp:active {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}