/* 
 * Adriane Booking - Styles (v2.10.38 - DIAMANTE)
 * Design focado em UX e correção de responsividade nos cards
 */
:root { 
    --af-primary: #0d9488; 
    --af-secondary: #0f172a; 
    --af-bg: #fff; 
    --af-border: #e2e8f0; 
}

.af-box24 { 
    max-width: 900px; 
    margin: 2rem auto; 
    font-family: 'Inter', sans-serif; 
    background: #fff; 
    padding: 2.5rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    border: 2px solid var(--af-primary); 
    position: relative; 
}

.af-v24-banner { 
    background: #083344; 
    color: #fff; 
    text-align: center; 
    font-size: 0.7rem; 
    font-weight: 900; 
    padding: 5px; 
    margin: -2.5rem -2.5rem 2rem -2.5rem; 
    letter-spacing: 1px; 
    border-radius: 17px 17px 0 0; 
}

.af-st24 { 
    display: none; 
} 

.af-st24.active { 
    display: block; 
    animation: afEnter24 0.4s ease; 
}

@keyframes afEnter24 { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Container de cards com flexbox inteligente */
#box-aud24, #box-need24, #box-freq24 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
}

/* Card de Triagem - Melhorado com Hover e Cursor */
.af-card24 { 
    padding: 15px 10px !important; 
    border: 2px solid var(--af-border); 
    border-radius: 12px; 
    background: #fff; 
    cursor: pointer !important; 
    transition: all 0.2s ease-in-out !important; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center; 
    font-weight: 700; 
    flex: 1 1 calc(31% - 12px);
    min-width: 135px; 
    font-family: inherit; 
    color: #0f172a; 
    font-size: 0.85rem;
    box-sizing: border-box !important;
    user-select: none;
}

.af-card24:hover { 
    border-color: var(--af-primary); 
    background: #f0fdfa; 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.af-card24.selected { 
    border-color: var(--af-primary) !important; 
    background: #f0fdfa !important; 
    box-shadow: 0 0 0 4px rgba(13,148,136,0.1); 
    transform: scale(1.02);
}

.af-card24.disabled { 
    opacity: 0.1 !important; 
    pointer-events: none; 
}

.af-card24 span { 
    font-size: 1.5rem; 
    margin-bottom: 6px; 
}

/* Botões */
.af-btn24 { 
    padding: 1.1rem; 
    border-radius: 12px; 
    font-weight: 800; 
    border: none; 
    cursor: pointer; 
    width: 100%; 
    background: var(--af-primary); 
    color: #fff; 
    transition: 0.3s; 
    font-size: 1rem; 
}

.af-btn24:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.af-btn24:disabled { 
    opacity: 0.2; 
    cursor: not-allowed; 
}

/* Botão Voltar Premium */
.af-btn-back24 {
    display: block !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-align: center !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 2rem !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.af-btn-back24:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Estilo das Salas */
.af-room24 { 
    border: 1px solid var(--af-border); 
    border-radius: 20px; 
    overflow: hidden; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 2rem; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.af-room24 img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}

.af-room24-body { 
    padding: 1.5rem; 
}

.af-room24-body p { 
    font-size: 0.85rem; 
    color: #475569; 
    line-height: 1.5; 
    margin: 1rem 0; 
}

.af-room24-price { 
    color: var(--af-primary); 
    font-weight: 900; 
    font-size: 1.1rem; 
    margin: 0.5rem 0; 
}

/* Calendário do Cliente */
#cal24 { 
    max-width: 450px; 
    margin: 2rem auto; 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
    background: #f8fafc; 
    padding: 1.2rem; 
    border-radius: 20px; 
    border: 1px solid #e2e8f0; 
    font-size: 0.9rem; 
}

.af-day24 { 
    aspect-ratio: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 700; 
    border: 1px solid #f1f5f9; 
    background: #fff; 
    transition: 0.2s;
}

.af-day24:hover:not(.disabled) {
    border-color: var(--af-primary);
    color: var(--af-primary);
}

.af-day24.active { 
    background: var(--af-primary); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(13,148,136,0.3); 
}

.af-day24.disabled { 
    opacity: 0.1 !important; 
    pointer-events: none; 
}

/* Slots de Horário */
.af-slot24 { 
    padding: 1rem; 
    border: 2px solid var(--af-border); 
    border-radius: 12px; 
    font-weight: 800; 
    cursor: pointer; 
    text-align: center; 
    transition: 0.2s;
}

.af-slot24:hover:not(.disabled) {
    border-color: var(--af-primary);
}

.af-slot24.selected { 
    background: var(--af-primary); 
    color: #fff; 
    border-color: var(--af-primary); 
}

.af-slot24.disabled {
    opacity: 0.2 !important;
    pointer-events: none;
    background: #f1f5f9;
}

/* --- ADICIONAR AO FINAL DO ARQUIVO --- */

/* Carrossel de Fotos na Sala */
.af-room24-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.af-room24-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Esconde todas por padrão */
}

.af-room24-media img.active {
    display: block; /* Mostra apenas a ativa */
}

/* Setas de Navegação */
.af-nav-photo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #0d9488;
}

.af-nav-photo:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.af-nav-prev { left: 10px; }
.af-nav-next { right: 10px; }

/* Ajuste na descrição */
.af-room24-body p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 10px 0;
    min-height: 45px;
}
/* Modal de Contrato */
.af-modal-24 {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}

.af-modal-content-24 {
    background: #fff;
    padding: 2.5rem;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.af-modal-close-24 {
    position: sticky;
    top: 0; float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    font-weight: bold;
}

.af-contract-text-24 {
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-line; /* Mantém as quebras de linha */
    text-align: justify;
}

.af-contract-text-24 strong { color: #000; }

/* Popup de Aviso de Procedimentos */
#af-warning-overlay-24 {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: afFadeIn 0.3s ease;
}

#af-warning-modal-24 {
    background: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 3px solid #ef4444;
    animation: afPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.af-warning-icon-24 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

#af-warning-modal-24 h2 {
    color: #1e293b;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.5rem;
}

#af-warning-modal-24 p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#af-warning-modal-24 b {
    color: #ef4444;
}

.af-warning-btn-24 {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
}

.af-warning-btn-24:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

@keyframes afFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes afPopUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Tela de Sucesso */
.af-success-icon {
    width: 80px;
    height: 80px;
    background: #0d9488;
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
    animation: afPopUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#st24-6 p strong {
    color: #0d9488;
}
