.float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border: none;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.float-button img {
    width: 24px;
    height: 24px;
}

.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.form-header {
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-content {
    padding: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
}

.input-group.error {
    border-color: #ff0000;
}

.input-group input,
.input-group textarea {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    resize: none;
}

textarea {
    height: 60px;
}

.submit-btn {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1ebd57;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

.input-group img.icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 10px;
}

.warning {
    color: #ff9800;
    font-weight: bold;
}

/* Estilos para o seletor de país */
.phone-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.country-selector {
    position: relative;
    min-width: 120px;
    flex-shrink: 0;
}

.country-selector select {
    width: 100%;
    padding: 8px 30px 8px 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-selector select option {
    padding-left: 35px;
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 20px 20px;
}

.flag-display {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.flag-display img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.country-selector::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    pointer-events: none;
}

#telefone {
    flex-grow: 1;
    min-width: 120px;
}

/* Estilos para o select customizado */
.custom-country-select {
    position: relative;
    min-width: 150px;
    cursor: pointer;
}

.selected-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 13px;
}

.selected-option::after {
    content: "▼";
    margin-left: auto;
    font-size: 10px;
    color: #666;
}

.options-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    font-size: 13px;
}

.options-container.active {
    display: block;
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

/* Ajuste para o grupo de telefone */
.phone-group {
    display: flex;
    align-items: center;
    width: 100%;
}

#telefone {
    flex-grow: 1;
    margin-left: 8px;
}