:root {
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.form-agendamento-container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 8px !important;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.form-header {
    background: linear-gradient(135deg, #5FB882, #D7CD52);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.form-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.form-steps {
    padding: 30px;
}

.form-field {
    margin-bottom: 25px;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px !important;
    font-size: 16px;
    transition: var(--transition);
}

.input-wrapper select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 44px; /* espaço para o ícone à direita */
    border: 2px solid #ddd;
    border-radius: 8px !important;
    font-size: 16px;
    transition: var(--transition);
    /* Remover seta nativa (cross-browser) */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    background-image: none;
}

/* Remover seta do select no IE/Edge */
.input-wrapper select::-ms-expand {
    display: none;
}

.input-wrapper input:focus {
    border-color: #5FB882;
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 184, 130, 0.2);
}

.input-wrapper select:focus {
    border-color: #5FB882;
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 184, 130, 0.2);
}

.input-wrapper .icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none; /* permite clicar no select através do ícone */
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #5FB882;
    color: white;
    border: none;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4da36f;
}

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

.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-pdf {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

.btn-pdf:hover {
    background-color: #128c31;
    color: #FFF;
}

.btn-view {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #256ad3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

.btn-view:hover {
    background-color: #122f8c;
    color: #FFF;
}

.btn-whatsapp {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #FFF;
}

.btn-plataforma {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #128C7E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

.btn-plataforma:hover {
    background-color: #3b9187;
    color: #FFF;
}

.btn-whatsapp.highlight-button {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-text {
    display: inline-block;
}

.feedback {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.feedback[hidden] {
    display: none;
}

.feedback:not([hidden]) {
    display: flex;
    align-items: center;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.feedback.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

.feedback.warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.feedback.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.feedback i {
    margin-right: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) translatex(-50%);
    }
    50% {
        transform: rotate(180deg) translatex(-50%);
    }
    100% {
        transform: rotate(360deg) translatex(-50%);
    }
}

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

.input-wrapper input[type="text"][id="cpf"] {
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .form-agendamento-container {
        border-radius: 8px !important;
    }
    
    .form-steps {
        padding: 20px;
    }
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.error-message, .warning-message {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.05);
    border: 1px solid #f44336;
}

.error-message i, .warning-message i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.error-message i {
    color: #f44336;
}

.warning-message i {
    color: #ff9800;
}

.error-message h2 {
    color: #666;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
}

.error-message p {
    color: #666;
    font-size: 16px;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 8px;
    background-color: rgba(244, 67, 54, 0.05);
    line-height: 1.6;
}

.error-message p br {
    display: block;
    content: "";
    margin: 8px 0;
}

.error-message p strong {
    color: #d32f2f;
    font-weight: 600;
    display: inline-block;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Ajuste para container de erro quando tem agendamento */
.error-message.has-appointment {
    background-color: rgba(255, 152, 0, 0.05);
    border: 1px solid #ff9800;
}

.error-message.has-appointment p {
    border-color: rgba(255, 152, 0, 0.2);
    background-color: rgba(255, 152, 0, 0.05);
}

.error-message.has-appointment strong {
    color: #f57c00;
    background-color: rgba(255, 152, 0, 0.1);
}

.warning-message {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 152, 0, 0.05);
    border: 1px solid #ff9800;
}

.warning-message p {
    color: #666;
    font-size: 16px;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 152, 0, 0.05);
    line-height: 1.6;
}

.warning-message p br {
    display: block;
    content: "";
    margin: 8px 0;
}

.warning-message p strong {
    color: #f57c00;
    font-weight: 600;
    display: inline-block;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.warning-message h2 {
    color: #666;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
}

.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.success-message h2 {
    color: #4caf50;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
}

.success-message p {
    color: #4caf50;
    font-size: 16px;
    margin-bottom: 20px;
}

.success-message i {
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 10px;
    opacity: 0.9;
}

.support-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.support-info h3 {
    margin-bottom: 10px;
    color: #555;
}

.support-info p {
    margin-bottom: 15px;
    color: #666;
}

.calendly-embed {
    margin-bottom: 20px;
}

.calendly-widget {
    height: 600px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.identification-form {
    margin-bottom: 20px;
}

/* Ícones Font Awesome */
.fas, .fab {
    display: inline-block;
}

/* Estado de loading do formulário */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Melhorar animação do botão loading */
.btn-loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Skeleton loading para inputs */
.input-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading indicator flutuante */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    width: auto;
    max-width: 90%;
    white-space: nowrap;
}

.loading-indicator.active {
    opacity: 1;
    visibility: visible;
}

.loading-indicator i {
    margin-right: 10px;
    animation: rotate 1s linear infinite;
}

/* Adicionar novo overlay para bloquear scroll */
.form-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 999;
    display: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.credentials-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.credential-field {
    display: flex;
    background-color: #fdfdfd;
    width: 100%;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}
.credential-field:first-child {
    border-bottom: 1px solid #ddd;
}

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80px;
    height: 50px;
    background-color: #f0f0f0;
    gap: 4px;
    padding-left: 8px;
}

.credential-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.btn-copy {
    
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;

    color: #333;
}

.btn-copy:hover {
    background: none;
    color: #000;
}

.credentials-info p {
    margin: 0;
}
