/* agendamento.css - Estilos específicos para o fluxo de agendamento */

body.agendamento-page {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

/* Header */
.agendamento-header {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -0.5rem;
}

.agendamento-header .logo {
    height: 80px;
    width: auto;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem auto 2rem auto;
    position: relative;
    padding: 0 1rem;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active, .progress-step.completed {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.progress-line {
    flex: 1;
    height: 1px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    position: relative;
    top: 0;
}

/* Main Container */
.agendamento-main {
    width: 100%;
    max-width: 480px;
    padding: 0 1.5rem;
    flex: 1;
}

.step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header .title-primary {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.step-header .subtitle {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Service Cards */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-card {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover, .service-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(179, 130, 88, 0.05);
}

.service-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.service-card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.service-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.service-card-meta .time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-card-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    margin: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-card.selected .service-card-radio {
    border-color: var(--primary-color);
}

.service-card.selected .service-card-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Step Footer */
.step-footer {
    margin-top: 2rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Calendar */
.calendar-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-weight: 500;
    font-size: 1.1rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem 0;
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    margin: 0 auto;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

.calendar-day.disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}
.calendar-day.selected::after {
    display: none; /* hide dot when selected */
}

/* Time Slots */
.time-slots-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.time-slots-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 400px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.time-slot {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: var(--primary-color);
}

.time-slot.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}

/* Summary Cards */
.card-summary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-container {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.input-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--primary-color);
    opacity: 0.8;
}

.input-wrapper.align-top svg {
    align-self: flex-start;
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.875rem 1rem 0.875rem 40px;
    transition: border-color 0.3s ease;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-wrapper input::placeholder, .input-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Upsell Section */
.upsell-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.upsell-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.upsell-card {
    border-color: rgba(179, 130, 88, 0.3);
    background-color: rgba(179, 130, 88, 0.05);
}

.btn-add-upsell {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-upsell:hover, .btn-add-upsell.added {
    background-color: var(--primary-color);
    color: #000;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 2rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Review Step */
.review-customer-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-customer-header h4 {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-edit {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.review-customer-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.review-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-row .label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.review-row .label svg {
    color: var(--primary-color);
}

.review-row .value {
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    margin-bottom: 1.5rem;
}
.info-box.border-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.whatsapp-box {
    background-color: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2) !important;
}

.whatsapp-box svg {
    color: #25D366;
}

/* Success Actions */
.success-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.action-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(179, 130, 88, 0.05);
}

.action-card svg {
    color: var(--primary-color);
}

.action-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-card-text span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.action-card-text small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-group .btn-prev {
    flex: 0 0 35%;
}

.btn-group .btn-next {
    flex: 1;
}

.btn-prev {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-prev:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Utilities */
.btn-block {
    width: 100%;
}

.category-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; color: var(--primary-color); margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

#step-5 .title-primary { font-size: 1.8rem !important; line-height: 1.2; margin-bottom: 0.5rem; }
.whatsapp-box { margin-bottom: 2rem; }

.whatsapp-box { margin-top: 1.5rem; margin-bottom: 2rem; }
#step-5 .subtitle { font-size: 1rem; margin-bottom: 2rem; }

.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal-overlay.active { opacity: 1; }
.custom-modal {
    background: var(--surface-color); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; padding: 2rem; width: 90%; max-width: 400px;
    text-align: center; transform: translateY(20px); transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.custom-modal-overlay.active .custom-modal { transform: translateY(0); }
.custom-modal-icon {
    width: 64px; height: 64px; background: rgba(255, 77, 77, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem auto; color: #ff4d4d;
}
.custom-modal-title { font-family: var(--font-title); font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.custom-modal-message { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
.custom-modal-btn { width: 100%; display: inline-flex; justify-content: center; }
